Removed unused code in main.cpp