feat: removed legacy code
This commit is contained in:
parent
ea5adfbe8a
commit
0080a48e70
@ -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():
|
||||
@ -202,18 +198,6 @@ class OuterProxy:
|
||||
|
||||
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
|
||||
|
||||
for instance in b._inner._refers_to_instances.copy():
|
||||
|
Loading…
Reference in New Issue
Block a user