Skip to content

Commit

Permalink
Refactoring.
Browse files Browse the repository at this point in the history
Signed-off-by: alex-z <[email protected]>
  • Loading branch information
allexzander committed Nov 15, 2023
1 parent d6b5a62 commit 42276df
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/libsync/propagateremotemove.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,9 @@ void PropagateRemoteMove::finalize()
return;
}

int a = 5;
a = 6;

if (vfs->mode() != Vfs::Off && vfs->mode() != Vfs::WindowsCfApi) {
// the following slow code is only useful for VFS with suffix which is used for TestSyncVirtualFiles::testPinStateLocals test case
// TODO: Get rid of the TestSyncVirtualFiles::testPinStateLocals or change it, native Virtual Files (e.g. CfAPI do not need this code as pinstate is moved with corresponding placeholder)
if (!propagator()->_journal->getFilesBelowPath(_item->_renameTarget.toUtf8(), [&](const SyncJournalFileRecord &rec) {
// not sure if this is needed, inode seems to never change for move/rename
auto newItem = SyncFileItem::fromSyncJournalFileRecord(rec);
Expand Down Expand Up @@ -371,7 +370,6 @@ void PropagateRemoteMove::finalize()
qCWarning(lcPropagateRemoteMove) << "Could not update inode for moved files in" << _item->_renameTarget;
}
}
a = 7;
}

propagator()->_journal->commit("Remote Rename");
Expand Down

0 comments on commit 42276df

Please sign in to comment.