I don't think this function is necessary. The parser here doesn't do anything special on parse errors, it just tries to continue. And I don't believe there should be any behavioral difference if a character was consumed or not.