This makes the unwanted code into an unused block:
| a b c |
[I don't know if Squeak optimizes this out like it should though. – BobHartwig
"the old implementation"
a := Float pi squared. "lots of pies"
b := 10.0 sqrt. "sqrt of 10"
c := a * b "a root pie"
myMethodYou can change this without adding and removing the closure. – Andreas Raab