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));