Skip to content

Commit

Permalink
Remove updating of _values
Browse files Browse the repository at this point in the history
  • Loading branch information
Schamper committed Nov 26, 2023
1 parent da2f09a commit ea06eaf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions dissect/cstruct/types/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,6 @@ def _proxy_structure(value: Structure) -> UnionProxy:
nested_value = getattr(value, field.name)
proxy = UnionProxy(self, field.name, nested_value)
object.__setattr__(value, field.name, proxy)
if hasattr(value, "_values"):
value._values[field.name] = proxy
_proxy_structure(nested_value)

_proxy_structure(self)
Expand Down

0 comments on commit ea06eaf

Please sign in to comment.