Removed some unused code related to Quit button

The button itself has been removed a long time ago