aboutsummaryrefslogtreecommitdiff
path: root/common/config-manager.cpp
diff options
context:
space:
mode:
authorGregory Montoir2007-02-13 21:06:57 +0000
committerGregory Montoir2007-02-13 21:06:57 +0000
commit1ce912e1063ae297407b4a9dfd5f30d4819eb284 (patch)
treea60c5b02027b991908299884d60ada4d014a9b2c /common/config-manager.cpp
parent474d49dc146876b773bfef80335b740d1b1fa8a7 (diff)
downloadscummvm-rg350-1ce912e1063ae297407b4a9dfd5f30d4819eb284.tar.gz
scummvm-rg350-1ce912e1063ae297407b4a9dfd5f30d4819eb284.tar.bz2
scummvm-rg350-1ce912e1063ae297407b4a9dfd5f30d4819eb284.zip
made rtrim() and ltrim() global functions, to reduce code duplication (it seems parallaction/parser.cpp code re-use them too
svn-id: r25564
Diffstat (limited to 'common/config-manager.cpp')
-rw-r--r--common/config-manager.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/common/config-manager.cpp b/common/config-manager.cpp
index 0f80e5c84f..05a1b22404 100644
--- a/common/config-manager.cpp
+++ b/common/config-manager.cpp
@@ -45,19 +45,6 @@ DECLARE_SINGLETON(Common::ConfigManager);
#define MAXLINELEN 256
-static char *ltrim(char *t) {
- while (isspace(*t))
- t++;
- return t;
-}
-
-static char *rtrim(char *t) {
- int l = strlen(t) - 1;
- while (l >= 0 && isspace(t[l]))
- t[l--] = 0;
- return t;
-}
-
static bool isValidDomainName(const Common::String &domName) {
const char *p = domName.c_str();
while (*p && (isalnum(*p) || *p == '-' || *p == '_'))