diff --git a/explorer/interpreter/action_stack.cpp b/explorer/interpreter/action_stack.cpp index de0597516ce7..c8bb6a460f2c 100644 --- a/explorer/interpreter/action_stack.cpp +++ b/explorer/interpreter/action_stack.cpp @@ -19,20 +19,6 @@ void ActionStack::Print(llvm::raw_ostream& out) const { } } -// OBSOLETE -void ActionStack::PrintScopes(llvm::raw_ostream& out) const { - llvm::ListSeparator sep(" ## "); - for (const std::unique_ptr& action : todo_) { - if (action->scope().has_value()) { - out << sep << *action->scope(); - } - } - if (globals_.has_value()) { - out << sep << *globals_; - } - // TODO: should we print constants as well? -} - void ActionStack::Start(std::unique_ptr action) { result_ = std::nullopt; CARBON_CHECK(todo_.IsEmpty()); diff --git a/explorer/interpreter/action_stack.h b/explorer/interpreter/action_stack.h index 4eccc95511f5..5f11d6b56180 100644 --- a/explorer/interpreter/action_stack.h +++ b/explorer/interpreter/action_stack.h @@ -33,9 +33,6 @@ class ActionStack { void Print(llvm::raw_ostream& out) const; LLVM_DUMP_METHOD void Dump() const { Print(llvm::errs()); } - // TODO: consider unifying with Print. - void PrintScopes(llvm::raw_ostream& out) const; - // Starts execution with `action` at the top of the stack. Cannot be called // when IsEmpty() is false. void Start(std::unique_ptr action);