remove unused variable

the build bots found a left over from [a7c6c881]
give the temporary variable the same type as the variable it holds
remove unused variable

appears to be a left over from work in [7e9c9d0c]