Remove unused local variable to fix a warning.
Merge pull request #4182 from thedax/fixWarning

Remove unused local variable to fix a warning.