Remove unused variable re #8402

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