From: Claudio Cambra Date: Mon, 31 Oct 2022 19:19:36 +0000 (+0100) Subject: Remove unused remotePath in User::processCompletedSyncItem X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~11^2~148^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ddc14a844da596c8ed8bcf90860ab68b9d44b63d;p=nextcloud-desktop.git Remove unused remotePath in User::processCompletedSyncItem Signed-off-by: Claudio Cambra --- diff --git a/src/gui/tray/usermodel.cpp b/src/gui/tray/usermodel.cpp index 3cee8809d..5b288cf81 100644 --- a/src/gui/tray/usermodel.cpp +++ b/src/gui/tray/usermodel.cpp @@ -617,9 +617,6 @@ void User::processCompletedSyncItem(const Folder *folder, const SyncFileItemPtr } if(activity._fileAction != "file_deleted" && !item->isEmpty()) { - auto remotePath = folder->remotePath(); - remotePath.append(activity._fileAction == "file_renamed" ? item->_renameTarget : activity._file); - const auto localFiles = FolderMan::instance()->findFileInLocalFolders(item->_file, account()); if (!localFiles.isEmpty()) { const auto firstFilePath = localFiles.constFirst();