remove the needless code