Remove unused variable re #7645

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>