Removed unused variables.
Trying to improve MSVC compatibility (entering paranoid mode, I'm afraid).