remove unused variables in DoCompactionWork()