diff --git a/SystemTools.cxx b/SystemTools.cxx index 010576c7f4f6ed4fb81299856a63015b93d44141..33a92e4c8687d277c0d998fccb751c12d988c75e 100644 --- a/SystemTools.cxx +++ b/SystemTools.cxx @@ -86,10 +86,6 @@ # include <linux/fs.h> #endif -#ifdef __APPLE__ -# include <copyfile.h> -#endif - // Windows API. #if defined(_WIN32) # include <windows.h> @@ -2301,10 +2297,6 @@ static bool CloneFileContent(const std::string& source, } return true; -#elif defined(__APPLE__) && defined(COPYFILE_CLONE) - SystemTools::RemoveFile(destination); - return copyfile(source.c_str(), destination.c_str(), NULL, COPYFILE_CLONE) == - 0; #else (void)source; (void)destination;