gdk3: remove needless code