summaryrefslogtreecommitdiff
path: root/src/config.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-02-26 19:32:25 -0500
committerAdam <Adam@anope.org>2014-02-26 19:32:25 -0500
commitabcf0cde5a6a28acf492cf158185861632d4ac44 (patch)
treed62a2050872bff97228c2fe6413c5cece8ee08f7 /src/config.cpp
parent8f3bd314ed3ce371d2f40687920246e6944376f6 (diff)
Remove unreachable code in config.cpp, this error is caught earlier
Diffstat (limited to 'src/config.cpp')
-rw-r--r--src/config.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/config.cpp b/src/config.cpp
index 167679ecb..0275cb7f8 100644
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -846,12 +846,6 @@ void Conf::LoadConf(File &file)
if (b)
Log(LOG_DEBUG) << "ln " << linenumber << " EOL: s='" << b->name << "' '" << itemname << "' set to '" << wordbuffer << "'";
- if (itemname.empty())
- {
- file.Close();
- throw ConfigException("Item without a name: " + file.GetName() + ":" + stringify(linenumber));
- }
-
/* Check defines */
for (int i = 0; i < this->CountBlock("define"); ++i)
{