Removed dead variables.

Clang 3.4 detected this.
Merge pull request #2636 from razielgn/removed-dead-variables

Removed dead variables.