Skip to content

Commit 831026b

Browse files
authored
chore: remove redundant ToFormat/ToString debug printing instances (#8400)
1 parent fbac0d2 commit 831026b

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/Lean/Compiler/IR/ElimDeadBranches.lean

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,6 @@ partial def merge (v₁ v₂ : Value) : Value :=
6969
| choice vs, v => choice <| addChoice merge vs v
7070
| v, choice vs => choice <| addChoice merge vs v
7171

72-
protected partial def format : Value → Format
73-
| top => "top"
74-
| bot => "bot"
75-
| choice vs => format "@" ++ @List.format _ ⟨Value.format⟩ vs
76-
| ctor i vs => format "#" ++ if vs.isEmpty then format i.name else Format.paren (format i.name ++ @formatArray _ ⟨Value.format⟩ vs)
77-
78-
instance : ToFormat Value := ⟨Value.format⟩
79-
instance : ToString Value := ⟨Format.pretty ∘ Value.format⟩
80-
8172
/--
8273
In `truncate`, we approximate a value as `top` if depth > `truncateMaxDepth`.
8374
TODO: add option to control this parameter.

0 commit comments

Comments
 (0)