diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index cc80a5ece..28c55e997 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -651,7 +651,6 @@ SymbolDatabase::SymbolDatabase(const Tokenizer *tokenizer, const Settings *setti // has body? if (scopeBegin->str() == "{" || scopeBegin->str() == ":") { tok = funcStart; - Scope *old_scope = scope; // class function if (tok->previous()->str() == "::")