Remove unused code.
Fix a /W4 warning.