Skip to content

Commit

Permalink
Code cleanup: Remove unused object (#6680)
Browse files Browse the repository at this point in the history
  • Loading branch information
danmar authored Aug 11, 2024
1 parent b6600f9 commit 17d2cef
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions cppcheckpremium-suppressions
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ premium-misra-cpp-2023-8.2.7:lib/checkclass.cpp
# ignored function return value (emplace etc)
premium-misra-cpp-2023-0.1.2

# TODO there is unused map
premium-misra-cpp-2023-0.2.1:lib/symboldatabase.cpp

# TODO use named function arguments
premium-misra-cpp-2023-0.2.2

Expand Down
2 changes: 0 additions & 2 deletions lib/symboldatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1690,8 +1690,6 @@ void SymbolDatabase::createSymbolDatabaseExprIds()
});

for (const Scope * scope : exprScopes) {
std::unordered_map<std::string, std::vector<Token*>> exprs;

std::unordered_map<std::string, nonneg int> unknownIds;
// Assign IDs to incomplete vars which are part of an expression
// Such variables should be assumed global
Expand Down

0 comments on commit 17d2cef

Please sign in to comment.