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.
This commit is contained in:
Allan Odgaard
2015-08-05 12:26:17 +02:00
parent 7d9b2d5470
commit 82e5e14ae1
2 changed files with 0 additions and 7 deletions

View File

@@ -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;

View File

@@ -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);