cmSystemTools: Remove unused CopySingleFile overload

This commit is contained in:
Brad King committed 2022-11-17 13:27:19 -05:00
1 parent c5a945dce8
commit fa518188d8
2 files changed
-9

No files matched your search

-7
View File
@@ -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)
-2
View File
@@ -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);