Remove unused counter variable [skip-ci]

Compilation fails on macos-13 runner with error: variable 'i' set but not used [-Werror,-Wunused-but-set-variable]
This commit is contained in:
Simran
2024-12-04 11:48:38 +01:00
committed by GitHub
parent dd17d618a2
commit 4de06b2fce
-2
View File
@@ -268,12 +268,10 @@ void NodeViewItem::SetExpanded(bool e, bool hide_titlebar)
if (IsOutputItem()) {
// Create items for each input of the node
int i = 1;
foreach (const QString &input, node_->inputs()) {
if (IsInputValid(input)) {
NodeViewItem *item = new NodeViewItem(node_, input, -1, context_, this);
children_.append(item);
i++;
}
}