From 9bc8012aa47bdec2867fa33f834c46dae9f5ed03 Mon Sep 17 00:00:00 2001 From: c-mellueh Date: Fri, 19 Sep 2025 15:44:26 +0200 Subject: [PATCH] remove old function --- src/bsdd/bsdd_json.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/bsdd/bsdd_json.py b/src/bsdd/bsdd_json.py index 3287ee8bfe..885b559725 100644 --- a/src/bsdd/bsdd_json.py +++ b/src/bsdd/bsdd_json.py @@ -104,22 +104,6 @@ class BsddClass(CaseInsensitiveModel): for cr in self.ClassRelations: cr._set_parent(self) - def _apply_code_side_effects(self, code: str) -> None: - from bsdd_json.utils import class_utils as cl_utils - - if not code.strip(): - logging.info("Empty Code is not allowed") - raise ValueError("Empty Code is not allowed") - - parent = self._parent_ref() if self._parent_ref else None - if parent is not None and code in cl_utils.get_all_class_codes(parent): - logging.info(f"Code '{code}' exists already") - raise ValueError(f"Code '{code}' exists already") - - # propagate to children - for child in cl_utils.get_children(self): - child.ParentClassCode = code - class BsddClassRelation(CaseInsensitiveModel): RelationType: CLASS_RELATION_TYPE