Remove unused print_host_code codes