Update csim.c

Removed dead code