[Adaptivity] Remove unused variables