Deletes unused variable

Guess that warning mattered.
Merge pull request #6365 from KA101/heed-warning

Deletes unused variable