This makes the unwanted code into an unused block:
myMethod
| 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. -- AndreasRaab
false ifTrue:[
"old implementation"
] ifFalse:[
"new implementation"
]