Eliminate some unused variables.