X11: remove dead code
Merge pull request #5050 from FernetMenta/clean

X11: remove dead code