Removed unused variables as discovered and advised by GCC.