Remove unused variable
Merge pull request #5171
Merge pull request #5171 in master