fix build: textevents
removing all realcode from xtext.c

It compiles. It does not immediately explode. Sounds good.