Bug 123745 - [IA2] Eventual crash in Writer documents containing cross-references

Removed some unused lines and comments