[ui] Graph: Remove unused moveNodesBy function

With Selection approach on children of backdrop, selected nodes can directly be moved without having the need for a specific function
This commit is contained in:
waaake 2025-02-13 07:14:32 +01:00
parent 499c99469e
commit cca0bb1a77

View file

@ -735,15 +735,6 @@ class UIGraph(QObject):
position = Position(node.x + offset.x(), node.y + offset.y())
self.moveNode(node, position)
@Slot(list, QPoint)
def moveNodesBy(self, nodes, offset: QPoint):
"""Move all the selected nodes by the given `offset`."""
with self.groupedGraphModification("Move Nodes"):
for node in nodes:
position = Position(node.x + offset.x(), node.y + offset.y())
self.moveNode(node, position)
@Slot()
def removeSelectedNodes(self):
"""Remove selected nodes from the graph."""