Remove unneded variables.