removed unused code from parser module