1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 01:53:13 +02:00

Remove unreachable code in config.cpp, this error is caught earlier

This commit is contained in:
Adam
2014-02-26 19:32:25 -05:00
parent 8f3bd314ed
commit abcf0cde5a
-6
View File
@@ -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)
{