main: Cleanup unused code