[yarn] delete useless variables