Remove unused function from grammar18.y