remove uneeded C code