Removed unused function allowed_code for planed instruction opcodes check.