Remove unused variables

This fixes compiler warnings about variable shadowing.
Merge pull request #11 from MarcelRaad/patch-1

Remove unused variables

Tested with clang-5.1 on Mavericks, thanks Marcel.