You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
validationResults.add(fmt::format("Node [{}] has no outgoing links! Node should be deleted or properly linked!", objAsNode->getName()), objAsNode, EWarningType::UnusedContent);
746
+
if (!anyOutputLinked)
747
+
validationResults.add(fmt::format("Node [{}] has no outgoing links! Node should be deleted or properly linked!", objAsNode->getName()), objAsNode, EWarningType::UnusedContent);
748
+
}
746
749
}
747
750
}
748
751
@@ -760,13 +763,16 @@ namespace rlogic::internal
760
763
continue;
761
764
762
765
assert(objAsNode->getInputs() != nullptr);
766
+
// only check for unlinked inputs if there are any
767
+
if (objAsNode->getInputs()->getChildCount() != 0u)
768
+
{
769
+
bool anyInputLinked = false;
770
+
for (constauto* input : objAsNode->getInputs()->m_impl->collectLeafChildren())
771
+
anyInputLinked |= (input->hasIncomingLink());
763
772
764
-
bool anyInputLinked = false;
765
-
for (constauto* input : objAsNode->getInputs()->m_impl->collectLeafChildren())
766
-
anyInputLinked |= (input->hasIncomingLink());
767
-
768
-
if (!anyInputLinked)
769
-
validationResults.add(fmt::format("Node [{}] has no ingoing links! Node should be deleted or properly linked!", objAsNode->getName()), objAsNode, EWarningType::UnusedContent);
773
+
if (!anyInputLinked)
774
+
validationResults.add(fmt::format("Node [{}] has no ingoing links! Node should be deleted or properly linked!", objAsNode->getName()), objAsNode, EWarningType::UnusedContent);
0 commit comments