Remove unused enum and one unused openWindow in main.cpp