Remove a few unused variables

This fixes some warnings when compiling with -Wall

There are actually more warmings, but at least those fixes seem
harmless.