useless code removal