MAINT remove deprecated code
DOC typo in warning