From 186ca0e5058ad033573aead30ddbb6963e7eafb6 Mon Sep 17 00:00:00 2001 From: Jon Ross-Perkins Date: Wed, 19 Feb 2025 10:33:59 -0800 Subject: [PATCH] Remove Context::DumpFormattedFile (#4978) Asked on [#toolchain](https://discord.com/channels/655572317891461132/655578254970716160/1339388316977729627), it sound like this is unused. Also with the `Dump` methods, having `Dump(context)` might be more helpful for findability (could just move it here if that's desired). --- toolchain/check/context.cpp | 5 ----- toolchain/check/context.h | 3 --- 2 files changed, 8 deletions(-) diff --git a/toolchain/check/context.cpp b/toolchain/check/context.cpp index 11970f452e5e..5f2150fdfce5 100644 --- a/toolchain/check/context.cpp +++ b/toolchain/check/context.cpp @@ -116,9 +116,4 @@ auto Context::PrintForStackDump(llvm::raw_ostream& output) const -> void { args_type_info_stack_.PrintForStackDump(Indent, output); } -auto Context::DumpFormattedFile() const -> void { - SemIR::Formatter formatter(sem_ir_); - formatter.Print(llvm::errs()); -} - } // namespace Carbon::Check diff --git a/toolchain/check/context.h b/toolchain/check/context.h index 648dbc0e22d3..c3d62edb337d 100644 --- a/toolchain/check/context.h +++ b/toolchain/check/context.h @@ -89,9 +89,6 @@ class Context { // Prints information for a stack dump. auto PrintForStackDump(llvm::raw_ostream& output) const -> void; - // Prints the the formatted sem_ir to stderr. - LLVM_DUMP_METHOD auto DumpFormattedFile() const -> void; - // Get the Lex::TokenKind of a node for diagnostics. auto token_kind(Parse::NodeId node_id) -> Lex::TokenKind { return tokens().GetKind(parse_tree().node_token(node_id));