Delete needless variables.