Removing unused method from gui.