Removes some unused variables.