remove obsoleted part of X11 related code