Erase useless code's parts