cmSystemTools: Remove unused CopySingleFile overload

This commit is contained in:
Brad King
2022-11-17 13:19:10 -05:00
parent c5a945dce8
commit fa518188d8
2 changed files with 0 additions and 9 deletions

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)

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