HPCC-10873 Remove some unused variables

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Merge pull request #5418 from ghalliday/issue10873

HPCC-10873 Remove some unused variables