ui.c: Code cleanup.

Remove unused code.