wxgui: dead code removal and formatting cleanup