Eliminate unused variables.