Merge pull request #8123 from nextcloud/backport/8118/stable-3.16

[stable-3.16] remove costly availability check that is never used
This commit is contained in:
Matthieu Gallien 2025-04-07 14:06:43 +02:00 committed by GitHub
commit 72b96019a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,7 +107,6 @@ void PropagateLocalRemove::start()
}
QString removeError;
const auto availability = propagator()->syncOptions()._vfs->availability(_item->_file, Vfs::AvailabilityRecursivity::RecursiveAvailability);
if (_moveToTrash && propagator()->syncOptions()._vfs->mode() != OCC::Vfs::WindowsCfApi) {
if ((QDir(filename).exists() || FileSystem::fileExists(filename))
&& !FileSystem::moveToTrash(filename, &removeError)) {