remove unnecessary C code