Remove construction of unused variable re #7514

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