From 82e5e14ae131d285ddfede0134f2f87d8a3fe2cb Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Wed, 5 Aug 2015 12:26:17 +0200 Subject: [PATCH] Remove unused function: is_trashed The intent was to use this to decide if the proxy icon should be hidden but the API used by the function is deprecated on 10.8. --- Frameworks/io/src/path.cc | 6 ------ Frameworks/io/src/path.h | 1 - 2 files changed, 7 deletions(-) diff --git a/Frameworks/io/src/path.cc b/Frameworks/io/src/path.cc index b1a0be9e..abd8c4dc 100644 --- a/Frameworks/io/src/path.cc +++ b/Frameworks/io/src/path.cc @@ -400,12 +400,6 @@ namespace path return (pathIsLocal == kCFBooleanTrue); } - bool is_trashed (std::string const& path) - { - Boolean res; - return DetermineIfPathIsEnclosedByFolder(kOnAppropriateDisk, kTrashFolderType, (UInt8 const*)path.c_str(), false, &res) == noErr ? res : false; - } - CFIndex label_index (std::string const& path) { CFIndex res = 0; diff --git a/Frameworks/io/src/path.h b/Frameworks/io/src/path.h index 5086aaae..ba1788e3 100644 --- a/Frameworks/io/src/path.h +++ b/Frameworks/io/src/path.h @@ -65,7 +65,6 @@ namespace path PUBLIC bool is_directory (std::string const& path); PUBLIC bool is_executable (std::string const& path); PUBLIC bool is_local (std::string const& path); - PUBLIC bool is_trashed (std::string const& path); PUBLIC std::string for_fd (int fd);