Remove useless variables.