Skip to content

Commit 490c8cd

Browse files
mgallienbackportbot[bot]
authored andcommitted
remove costly availability check that is never used
we never read the value computed computing it means a recursive visit of the whole folder hierarchy which could be taking a long time Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
1 parent e7d61f4 commit 490c8cd

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/libsync/propagatorjobs.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ void PropagateLocalRemove::start()
117117
}
118118

119119
QString removeError;
120-
const auto availability = propagator()->syncOptions()._vfs->availability(_item->_file, Vfs::AvailabilityRecursivity::RecursiveAvailability);
121120
if (_moveToTrash && propagator()->syncOptions()._vfs->mode() != OCC::Vfs::WindowsCfApi) {
122121
if ((QDir(filename).exists() || FileSystem::fileExists(filename))
123122
&& !FileSystem::moveToTrash(filename, &removeError)) {

0 commit comments

Comments
 (0)