Update main.c

Removed unused code.