From 1595eb0a4bab1fb233e3c9d319fd8a4f041d352b Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Sat, 21 Aug 2010 16:41:47 -0400 Subject: Remove some duplicate code --- src/configreader.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/configreader.cpp') 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); -- cgit v1.3.1-10-gc9f91