Remove unused computation

This commit is contained in:
Hannah von Reth 2021-01-15 13:37:25 +01:00 committed by Matthieu Gallien (Rebase PR Action)
parent 1284d78599
commit 926a52b33d

View file

@ -472,12 +472,6 @@ void DiscoverySingleDirectoryJob::directoryListingIteratedSlot(const QString &fi
result.remotePerm.unsetPermission(RemotePermissions::IsMounted);
result.remotePerm.setPermission(RemotePermissions::IsMountedSub);
}
QStringRef fileRef(&file);
int slashPos = file.lastIndexOf(QLatin1Char('/'));
if (slashPos > -1) {
fileRef = file.midRef(slashPos + 1);
}
_results.push_back(std::move(result));
}