Removing unused code in lexer