remove useless statements