[lldb] Remove unused ThreadPlanStack::GetStackOfKind (NFC)

This function isn't used.

Differential Revision: https://reviews.llvm.org/D95411
This commit is contained in:
Dave Lee 2021-01-25 16:52:32 -08:00
parent 9190f17a7c
commit 90b8ae016b
2 changed files with 0 additions and 17 deletions

View File

@ -35,8 +35,6 @@ public:
ThreadPlanStack(const Thread &thread, bool make_empty = false);
~ThreadPlanStack() {}
enum StackKind { ePlans, eCompletedPlans, eDiscardedPlans };
using PlanStack = std::vector<lldb::ThreadPlanSP>;
void DumpThreadPlans(Stream &s, lldb::DescriptionLevel desc_level,
@ -102,8 +100,6 @@ public:
void ClearThreadCache();
private:
const PlanStack &GetStackOfKind(ThreadPlanStack::StackKind kind) const;
void PrintOneStack(Stream &s, llvm::StringRef stack_name,
const PlanStack &stack, lldb::DescriptionLevel desc_level,
bool include_internal) const;

View File

@ -379,19 +379,6 @@ void ThreadPlanStack::WillResume() {
m_discarded_plans.clear();
}
const ThreadPlanStack::PlanStack &
ThreadPlanStack::GetStackOfKind(ThreadPlanStack::StackKind kind) const {
switch (kind) {
case ePlans:
return m_plans;
case eCompletedPlans:
return m_completed_plans;
case eDiscardedPlans:
return m_discarded_plans;
}
llvm_unreachable("Invalid StackKind value");
}
void ThreadPlanStackMap::Update(ThreadList &current_threads,
bool delete_missing,
bool check_for_new) {