xstuff.c: remove old unused code