Remove some dead code from codegen as found by pyflakes.