diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 78d230ef92..75b76685e0 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1111,13 +1111,6 @@ bool cmMoveFile(std::wstring const& oldname, std::wstring const& newname, } #endif -bool cmSystemTools::CopySingleFile(const std::string& oldname, - const std::string& newname) -{ - return cmSystemTools::CopySingleFile(oldname, newname, CopyWhen::Always) == - CopyResult::Success; -} - cmSystemTools::CopyResult cmSystemTools::CopySingleFile( std::string const& oldname, std::string const& newname, CopyWhen when, std::string* err) diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index 87b354c8de..f2b3dd2469 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -177,8 +177,6 @@ public: const mode_t* mode = nullptr); /** Copy a file. */ - static bool CopySingleFile(const std::string& oldname, - const std::string& newname); static CopyResult CopySingleFile(std::string const& oldname, std::string const& newname, CopyWhen when, std::string* err = nullptr);