Eliminate useless var definitions.