remove unused parameters
fix compilation for non i386/x86_64 architectures
comment out unused function