remove unused code in instr.cpp