aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2011-10-07 00:09:39 +0200
committerJohannes Schickel2011-10-07 00:16:21 +0200
commit7f55737f9cc5b74e5ebf825c7c25fcbe561bccfe (patch)
treeee57b692d6f11728222d8a2dff5113849109a34e
parent1117c8c3ed82315da58b695e1975db84500659b0 (diff)
downloadscummvm-rg350-7f55737f9cc5b74e5ebf825c7c25fcbe561bccfe.tar.gz
scummvm-rg350-7f55737f9cc5b74e5ebf825c7c25fcbe561bccfe.tar.bz2
scummvm-rg350-7f55737f9cc5b74e5ebf825c7c25fcbe561bccfe.zip
COMMON: Remove unused code in config-file.cpp.
-rw-r--r--common/config-file.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/common/config-file.cpp b/common/config-file.cpp
index 1ebd9b5701..2bdf598ea8 100644
--- a/common/config-file.cpp
+++ b/common/config-file.cpp
@@ -26,16 +26,8 @@
#include "common/system.h"
#include "common/textconsole.h"
-#define MAXLINELEN 256
-
namespace Common {
-/**
- * Check whether the given string is a valid section or key name.
- * For that, it must only consist of letters, numbers, dashes and
- * underscores. In particular, white space and "#", "=", "[", "]"
- * are not valid!
- */
bool ConfigFile::isValidName(const String &name) {
const char *p = name.c_str();
while (*p && (isalnum(static_cast<unsigned char>(*p)) || *p == '-' || *p == '_' || *p == '.'))