parser: remove dead code