Skip to content

Commit 905d2ec

Browse files
authored
[lldb][ClangExpressionDeclMap][NFC] Remove unused NameSearchContext::m_found_function (#88724)
This member was never actually used, ever since its introduction in `ca4e0fd7e63b90e6f68044af47248c64f250ee8f`.
1 parent b8c16db commit 905d2ec

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,6 @@ void ClangExpressionDeclMap::LookupInModulesDeclVendor(
10491049
context.AddNamedDecl(copied_function);
10501050

10511051
context.m_found_function_with_type_info = true;
1052-
context.m_found_function = true;
10531052
} else if (auto copied_var = dyn_cast<clang::VarDecl>(copied_decl)) {
10541053
context.AddNamedDecl(copied_var);
10551054
context.m_found_variable = true;
@@ -1299,7 +1298,6 @@ void ClangExpressionDeclMap::LookupFunction(
12991298

13001299
AddOneFunction(context, sym_ctx.function, nullptr);
13011300
context.m_found_function_with_type_info = true;
1302-
context.m_found_function = true;
13031301
} else if (sym_ctx.symbol) {
13041302
Symbol *symbol = sym_ctx.symbol;
13051303
if (target && symbol->GetType() == eSymbolTypeReExported) {
@@ -1331,10 +1329,8 @@ void ClangExpressionDeclMap::LookupFunction(
13311329
if (!context.m_found_function_with_type_info) {
13321330
if (extern_symbol) {
13331331
AddOneFunction(context, nullptr, extern_symbol);
1334-
context.m_found_function = true;
13351332
} else if (non_extern_symbol) {
13361333
AddOneFunction(context, nullptr, non_extern_symbol);
1337-
context.m_found_function = true;
13381334
}
13391335
}
13401336
}

lldb/source/Plugins/ExpressionParser/Clang/NameSearchContext.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ struct NameSearchContext {
4141

4242
bool m_found_variable = false;
4343
bool m_found_function_with_type_info = false;
44-
bool m_found_function = false;
4544
bool m_found_local_vars_nsp = false;
4645
bool m_found_type = false;
4746

0 commit comments

Comments
 (0)