Removing useless c code