remove unused code in console project