found this while translating into python:
https://github.com/search?q=repo%3Aphp-edifact%2Funtdid-parser%20elementStatus&type=code
All these variables seem to be left from a refactoring?
They are only written, never read. It should be safe to delete these lines.