mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 09:20:27 +00:00
Explorer: drop unused PrintScopes method (#2588)
This commit is contained in:
1 parent
65078ea943
commit
245e4d1ea6
2 files changed
-17
No files matched your search
@@ -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>& 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> action) {
|
||||
result_ = std::nullopt;
|
||||
CARBON_CHECK(todo_.IsEmpty());
|
||||
|
||||
Reference in new issue
Block a user