[Upg] remove useless code