Remove a couple of unused variables noticed when code is compiled release mode.