x86: cleanup unused code