[Upg] remove useless codes