diff options
author | David Tardon <dtardon@redhat.com> | 2011-05-12 10:14:39 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-05-12 14:32:55 +0200 |
commit | 55d1ccbee2a7dbe373752186daeb4b2af6e15209 (patch) | |
tree | 4cd590bbc71abe593e4de60696faf12e3509d5ce /l10ntools | |
parent | 105d35d5f5983efe1eea48a65bf4415bd6d199f9 (diff) |
the else branch is unreachable
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/help/HelpCompiler.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/l10ntools/source/help/HelpCompiler.cxx b/l10ntools/source/help/HelpCompiler.cxx index f0e709cccf25..df2093931126 100644 --- a/l10ntools/source/help/HelpCompiler.cxx +++ b/l10ntools/source/help/HelpCompiler.cxx @@ -464,7 +464,7 @@ bool HelpCompiler::compile( void ) throw( HelpProcessingException ) streamTable.default_helptexts = aparser.helptexts; streamTable.default_keywords = aparser.keywords; } - else if (modulename == module) + else { streamTable.dropappl(); streamTable.appl_doc = docResolvedDoc; @@ -472,14 +472,6 @@ bool HelpCompiler::compile( void ) throw( HelpProcessingException ) streamTable.appl_helptexts = aparser.helptexts; streamTable.appl_keywords = aparser.keywords; } - else - { - std::stringstream aStrStream; - aStrStream << "ERROR: Found unexpected module name \"" << modulename - << "\" in file" << src.native_file_string().c_str() << std::endl; - throw HelpProcessingException( HELPPROCESSING_GENERAL_ERROR, aStrStream.str() ); - } - } // end iteration over all applications streamTable.document_id = documentId; |