summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-06-24 19:09:50 (GMT)
committerBrad King <brad.king@kitware.com>2009-06-24 19:09:50 (GMT)
commitb64aadc5b045d85f86e5341992a236f45af59086 (patch)
treea38bd901167d3ad0aacf51b50805588e603aa42d /Source/cmSystemTools.cxx
parent031379abe62ce12906a8f6b035dabe39c81f5d17 (diff)
downloadCMake-b64aadc5b045d85f86e5341992a236f45af59086.zip
CMake-b64aadc5b045d85f86e5341992a236f45af59086.tar.gz
CMake-b64aadc5b045d85f86e5341992a236f45af59086.tar.bz2
ENH: Remove unused cmSystemTools::RemoveEscapes
The RemoveEscapes method is no longer used anywhere. All uses of it have been replaced by a real lexer. We can remove the method.
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx42
1 files changed, 0 insertions, 42 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index d907288..de5e31b 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -235,48 +235,6 @@ std::string cmSystemTools::EscapeSpaces(const char* str)
}
}
-
-std::string cmSystemTools::RemoveEscapes(const char* s)
-{
- std::string result = "";
- for(const char* ch = s; *ch; ++ch)
- {
- if(*ch == '\\' && *(ch+1) != ';')
- {
- ++ch;
- switch (*ch)
- {
- case '\\': result.insert(result.end(), '\\'); break;
- case '"': result.insert(result.end(), '"'); break;
- case ' ': result.insert(result.end(), ' '); break;
- case 't': result.insert(result.end(), '\t'); break;
- case 'n': result.insert(result.end(), '\n'); break;
- case 'r': result.insert(result.end(), '\r'); break;
- case '#': result.insert(result.end(), '#'); break;
- case '(': result.insert(result.end(), '('); break;
- case ')': result.insert(result.end(), ')'); break;
- case '0': result.insert(result.end(), '\0'); break;
- case '\0':
- {
- cmSystemTools::Error("Trailing backslash in argument:\n", s);
- return result;
- }
- default:
- {
- std::string chStr(1, *ch);
- cmSystemTools::Error("Invalid escape sequence \\", chStr.c_str(),
- "\nin argument ", s);
- }
- }
- }
- else
- {
- result.insert(result.end(), *ch);
- }
- }
- return result;
-}
-
void cmSystemTools::Error(const char* m1, const char* m2,
const char* m3, const char* m4)
{