Delete unnecessary codes.