Remove useless C code and C bridge