Removed unused code in gui.c