Remove unused loop variable.
Merge pull request #5727 from franzliedke/patch-3

Remove unused loop variable.