summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-11-17 18:19:10 (GMT)
committerBrad King <brad.king@kitware.com>2022-11-17 18:27:19 (GMT)
commitfa518188d8aeffa176109bc960173b06fa1e135e (patch)
treef1d60b5212271b857195a608035a13aad743677b
parentc5a945dce8e1a4fb1b1db91c2dae03795c74074b (diff)
downloadCMake-fa518188d8aeffa176109bc960173b06fa1e135e.zip
CMake-fa518188d8aeffa176109bc960173b06fa1e135e.tar.gz
CMake-fa518188d8aeffa176109bc960173b06fa1e135e.tar.bz2
cmSystemTools: Remove unused CopySingleFile overload
-rw-r--r--Source/cmSystemTools.cxx7
-rw-r--r--Source/cmSystemTools.h2
2 files changed, 0 insertions, 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);