SymbolDatabase: Remove useless break. As far as I know Tokenizer::syntaxError() throws an exception and therefore the break after the function call is unreachable

This commit is contained in:
Daniel Marjamäki 2018-02-05 23:28:33 +01:00
parent ff3c0993ac
commit 8a3c25210d
1 changed files with 1 additions and 3 deletions

View File

@ -128,10 +128,8 @@ void SymbolDatabase::createSymbolDatabaseFindAllScopes()
// only create base list for classes and structures // only create base list for classes and structures
if (new_scope->isClassOrStruct()) { if (new_scope->isClassOrStruct()) {
// goto initial '{' // goto initial '{'
if (!new_scope->definedType) { if (!new_scope->definedType)
_tokenizer->syntaxError(nullptr); // #6808 _tokenizer->syntaxError(nullptr); // #6808
break;
}
tok2 = new_scope->definedType->initBaseInfo(tok, tok2); tok2 = new_scope->definedType->initBaseInfo(tok, tok2);
// make sure we have valid code // make sure we have valid code
if (!tok2) { if (!tok2) {