From 9145dc1cae03f2a316bf88760b9ae0aeec1e29fd Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Mon, 7 Mar 2022 04:38:08 -0800 Subject: [PATCH] refactor(history): Remove unused friendPk from FileDbInsertionData --- src/persistence/history.cpp | 1 - src/persistence/history.h | 1 - 2 files changed, 2 deletions(-) diff --git a/src/persistence/history.cpp b/src/persistence/history.cpp index 325a3fc71..bd0c2870d 100644 --- a/src/persistence/history.cpp +++ b/src/persistence/history.cpp @@ -942,7 +942,6 @@ void History::addNewFileMessage(const ToxPk& friendPk, const QString& fileId, std::weak_ptr weakThis = shared_from_this(); FileDbInsertionData insertionData; - insertionData.friendPk = friendPk; insertionData.fileId = fileId; insertionData.fileName = fileName; insertionData.filePath = filePath; diff --git a/src/persistence/history.h b/src/persistence/history.h index 52679b3f6..ea07e9f15 100644 --- a/src/persistence/history.h +++ b/src/persistence/history.h @@ -116,7 +116,6 @@ struct FileDbInsertionData FileDbInsertionData(); RowId historyId; - ToxPk friendPk; QString fileId; QString fileName; QString filePath;