diff options
| author | 2010-08-21 16:41:47 -0400 | |
|---|---|---|
| committer | 2010-08-21 16:41:47 -0400 | |
| commit | 1595eb0a4bab1fb233e3c9d319fd8a4f041d352b (patch) | |
| tree | 7491432be4e7accfeefa50bfab794a68b600e407 /src/configreader.cpp | |
| parent | Remove ConfigReader (deprecated interface) (diff) | |
Remove some duplicate code
Diffstat (limited to 'src/configreader.cpp')
| -rw-r--r-- | src/configreader.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index d4ca73376..bf4c3021e 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -787,19 +787,6 @@ bool ServerConfig::StartsWithWindowsDriveLetter(const std::string &path) return (path.length() > 2 && isalpha(path[0]) && path[1] == ':'); } -ConfigTag* ServerConfig::GetTag(const std::string &tag) -{ - ConfigTagList found = config_data.equal_range(tag); - if (found.first == found.second) - return NULL; - ConfigTag* rv = found.first->second; - found.first++; - if (found.first != found.second) - ServerInstance->Logs->Log("CONFIG",DEFAULT, "Multiple <" + tag + "> tags found; only first will be used " - "(first at " + rv->getTagLocation() + "; second at " + found.first->second->getTagLocation() + ")"); - return rv; -} - ConfigTagList ServerConfig::GetTags(const std::string& tag) { return config_data.equal_range(tag); |
