Delete unnecessary code in XS