[core] Clean-up unused code

This commit is contained in:
Yann Lanthony 2024-10-28 12:19:04 +01:00
parent 3cc57f89e6
commit 8e3b9873d9

View file

@ -182,21 +182,6 @@ class Attribute(BaseObject):
return self.getLinkParam().value
return self._value
def onChanged(self):
""" Called when the attribute value has changed """
if self.node.isCompatibilityNode:
# We have no access to the node's implementation,
# so we cannot call the custom method.
return
if self.isOutput and not self.node.isInputNode:
# Ignore changes on output attributes for non-input nodes
# as they are updated during the node's computation.
# And we do not want notifications during the graph processing.
return
# notify the node that the attribute has changed
# this will call the node descriptor "onAttrNameChanged" method
self.node.onAttributeChanged(self)
def _set_value(self, value, emitSignals=True):
if self._value == value:
return