Remove unused functions and types from Parser.