diff options
author | Jacques Lucke <jacques@blender.org> | 2020-03-12 15:23:02 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-03-12 15:23:02 +0300 |
commit | 37a07f812b046b749b4660d12be6bd503356d933 (patch) | |
tree | 628f22748bcfc9a0104fa5e4018e64ab39d4a580 /source/blender | |
parent | 16ed7aebf2bc078952d5cd9a77a4871ee0fe1236 (diff) |
Cleanup: remove unused node tree user counting functions
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/BKE_node.h | 3 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/node.c | 15 |
2 files changed, 0 insertions, 18 deletions
diff --git a/source/blender/blenkernel/BKE_node.h b/source/blender/blenkernel/BKE_node.h index 6f1f68e1ef2..ed36d3892ac 100644 --- a/source/blender/blenkernel/BKE_node.h +++ b/source/blender/blenkernel/BKE_node.h @@ -391,9 +391,6 @@ struct bNodeTree *ntreeCopyTree_ex(const struct bNodeTree *ntree, struct Main *bmain, const bool do_id_user); struct bNodeTree *ntreeCopyTree(struct Main *bmain, const struct bNodeTree *ntree); -/* node->id user count */ -void ntreeUserIncrefID(struct bNodeTree *ntree); -void ntreeUserDecrefID(struct bNodeTree *ntree); struct bNodeTree **BKE_ntree_ptr_from_id(struct ID *id); struct bNodeTree *ntreeFromID(struct ID *id); diff --git a/source/blender/blenkernel/intern/node.c b/source/blender/blenkernel/intern/node.c index 872ba1b38d7..8ddb78bcc17 100644 --- a/source/blender/blenkernel/intern/node.c +++ b/source/blender/blenkernel/intern/node.c @@ -1682,21 +1682,6 @@ bNodeTree *ntreeCopyTree(Main *bmain, const bNodeTree *ntree) return ntreeCopyTree_ex(ntree, bmain, true); } -void ntreeUserIncrefID(bNodeTree *ntree) -{ - bNode *node; - for (node = ntree->nodes.first; node; node = node->next) { - id_us_plus(node->id); - } -} -void ntreeUserDecrefID(bNodeTree *ntree) -{ - bNode *node; - for (node = ntree->nodes.first; node; node = node->next) { - id_us_min(node->id); - } -} - /* *************** Node Preview *********** */ /* XXX this should be removed eventually ... |