feat: removed legacy code
This commit is contained in:
		| @@ -34,10 +34,6 @@ class InnerData: | ||||
|         self._refers_to_instances = set() | ||||
|         self._fetched_from: dict = {} | ||||
|  | ||||
|         # collection : collection that is a collection of self | ||||
|         self._is_collection_child: Dict[Collection, Collection] = {} | ||||
|         self._is_collection_parent: Dict[Collection, Collection] = {} | ||||
|          | ||||
|         # initialize the default values | ||||
|         self._default_values = {} | ||||
|         for name, factory in object_type._default_factories.items(): | ||||
| @@ -201,18 +197,6 @@ class OuterProxy: | ||||
|             a, b = b, a | ||||
|  | ||||
|         object_trace(f"merging {type(a).__name__} [{a.title_string} | {a.id}] with {type(b).__name__} [{b.title_string} | {b.id}]") | ||||
|          | ||||
|         for collection, child_collection in b._inner._is_collection_child.items(): | ||||
|             try: | ||||
|                 collection.children.remove(child_collection) | ||||
|             except ValueError: | ||||
|                 pass | ||||
|              | ||||
|         for collection, parent_collection in b._inner._is_collection_parent.items(): | ||||
|             try: | ||||
|                 collection.parents.remove(parent_collection) | ||||
|             except ValueError: | ||||
|                 pass | ||||
|  | ||||
|         old_inner = b._inner | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user