Deletion of useless code