diff --git a/medcat/cdb.py b/medcat/cdb.py index 2b640845..3961fc92 100644 --- a/medcat/cdb.py +++ b/medcat/cdb.py @@ -13,7 +13,6 @@ from medcat.utils.matutils import unitvec from medcat.utils.ml_utils import get_lr_linking from medcat.config import Config, workers -from medcat.utils.decorators import deprecated from medcat.utils.saving.serializer import CDBSerializer from medcat.utils.config_utils import get_and_del_weighted_average_from_config from medcat.utils.config_utils import default_weighted_average @@ -148,11 +147,6 @@ def update_cui2average_confidence(self, cui: str, new_sim: float) -> None: (self.cui2count_train.get(cui, 0) + 1) self.is_dirty = True - @deprecated("Deprecated. For internal use only. Use CAT.unlink_concept_name instead", - depr_version=(1, 12, 0), removal_version=(1, 13, 0)) - def remove_names(self, cui: str, names: Iterable[str]) -> None: - self._remove_names(cui, names) - def _remove_names(self, cui: str, names: Iterable[str]) -> None: """Remove names from an existing concept - effect is this name will never again be used to link to this concept. This will only remove the name from the linker (namely name2cuis and name2cuis2status), the name will still be present everywhere else.