Cleanup very old unused code in main.