remove the useless code