Remove unused variables

Issue(s) found via [cppcheck](http://cppcheck.sourceforge.net/).