delete deprecated code.