Remove unused variable
Merge pull request #5171