remove Useless code