Cleanup: Remove unused node function

This commit is contained in:
Hans Goudey
2022-11-05 19:00:50 +01:00
parent c6725dc507
commit 8b29d6cd75
2 changed files with 0 additions and 13 deletions

View File

@@ -1020,8 +1020,6 @@ bool BKE_node_is_connected_to_output(struct bNodeTree *ntree, struct bNode *node
#define NODE_GROUP_OUTPUT 8
#define NODE_CUSTOM_GROUP 9
void BKE_node_tree_unlink_id(ID *id, struct bNodeTree *ntree);
/** \} */
/* -------------------------------------------------------------------- */

View File

@@ -416,17 +416,6 @@ bool BKE_node_is_connected_to_output(bNodeTree *ntree, bNode *node)
return node_is_connected_to_output_recursive(ntree, node);
}
void BKE_node_tree_unlink_id(ID *id, struct bNodeTree *ntree)
{
bNode *node;
for (node = (bNode *)ntree->nodes.first; node; node = node->next) {
if (node->id == id) {
node->id = nullptr;
}
}
}
/** \} */
/* -------------------------------------------------------------------- */