Remove unused variable which caused clang error.
Merge pull request #3706 from alja/clang-err

Remove unused variable which caused clang error.