Skip to content

Commit 4b31b4e

Browse files
committed
[lldb][DWARFIndex][NFC] Remove DWARFIndex::IterationActionAdaptor
Now that all `DWARFIndex` APIs have been converted to use `IterationAction`, the `IterationActionAdaptor` is unused.
1 parent b557cd3 commit 4b31b4e

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

lldb/source/Plugins/SymbolFile/DWARF/DWARFIndex.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -145,25 +145,6 @@ class DWARFIndex {
145145
IterationAction ProcessNamespaceDieMatchParents(
146146
const CompilerDeclContext &parent_decl_ctx, DWARFDIE die,
147147
llvm::function_ref<IterationAction(DWARFDIE die)> callback);
148-
149-
/// Helper to convert callbacks that return an \c IterationAction
150-
/// to a callback that returns a \c bool, where \c true indicates
151-
/// we should continue iterating. This will be used to incrementally
152-
/// migrate the callbacks to return an \c IterationAction.
153-
///
154-
/// FIXME: remove once all callbacks in the DWARFIndex APIs return
155-
/// IterationAction.
156-
struct IterationActionAdaptor {
157-
IterationActionAdaptor(
158-
llvm::function_ref<IterationAction(DWARFDIE die)> callback)
159-
: m_callback_ref(callback) {}
160-
161-
bool operator()(DWARFDIE die) {
162-
return m_callback_ref(std::move(die)) == IterationAction::Continue;
163-
}
164-
165-
llvm::function_ref<IterationAction(DWARFDIE die)> m_callback_ref;
166-
};
167148
};
168149
} // namespace dwarf
169150
} // namespace lldb_private::plugin

0 commit comments

Comments
 (0)