Removed unused variables

The unused variables were causing clang to issue error messages.
Removed unused variable
Merge pull request #3642 from Dr15Jones/removeUnusedVariables

Clang -- Removed unused variables