remove unneeded parts of cc_remote.c