diff --git a/src/kits/tracker/FSUtils.cpp b/src/kits/tracker/FSUtils.cpp index 38b16bc558..fc4c19ea18 100644 --- a/src/kits/tracker/FSUtils.cpp +++ b/src/kits/tracker/FSUtils.cpp @@ -2385,19 +2385,8 @@ FSIsTrashDir(const BEntry *entry) bool FSIsDeskDir(const BEntry *entry, dev_t device) { - BVolume volume(device); - - status_t result = volume.InitCheck(); - if (result != B_OK) - return false; - - BVolume bootvolume; - BVolumeRoster roster; - if (roster.GetBootVolume(&bootvolume) == B_OK && volume != bootvolume) - return false; - BPath path; - result = find_directory(B_DESKTOP_DIRECTORY, &path, true, &volume); + status_t result = find_directory(B_DESKTOP_DIRECTORY, &path, true); if (result != B_OK) return false;