Remove deprecated code function.