x86/traps: Remove superfluous weak definitions and dead code