From 7f55737f9cc5b74e5ebf825c7c25fcbe561bccfe Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Fri, 7 Oct 2011 00:09:39 +0200 Subject: COMMON: Remove unused code in config-file.cpp. --- common/config-file.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'common') 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(*p)) || *p == '-' || *p == '_' || *p == '.')) -- cgit v1.2.3