From fa518188d8aeffa176109bc960173b06fa1e135e Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 17 Nov 2022 13:19:10 -0500 Subject: cmSystemTools: Remove unused CopySingleFile overload --- Source/cmSystemTools.cxx | 7 ------- Source/cmSystemTools.h | 2 -- 2 files changed, 9 deletions(-) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 78d230e..75b7668 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 87b354c..f2b3dd2 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); -- cgit v0.12