Remove unused variable re #7645

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
Merge branch 'feature/7645_saveascii_writeXerror' into develop