Jelajahi Sumber

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).
Jon Ross-Perkins 1 tahun lalu
induk
melakukan
186ca0e505
2 mengubah file dengan 0 tambahan dan 8 penghapusan
  1. 0 5
      toolchain/check/context.cpp
  2. 0 3
      toolchain/check/context.h

+ 0 - 5
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

+ 0 - 3
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));