Fixed the generator to remove the method templates after they are replaced
Authored by: hotzst 2009-10-21
Parent: [r2810]
Child: [r2812]