Removed unused code in codegen.c