From abcf0cde5a6a28acf492cf158185861632d4ac44 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 26 Feb 2014 19:32:25 -0500 Subject: [PATCH] Remove unreachable code in config.cpp, this error is caught earlier --- src/config.cpp | 6 ------ 1 file changed, 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) {