class library: gui: remove unnecessary code