Cleanup: Remove unused node type flag
This flag was checked, but not set anywhere.
This commit is contained in:
parent
82fa2bdf3f
commit
76cb11e332
|
@ -1159,7 +1159,6 @@ void BKE_nodetree_remove_layer_n(struct bNodeTree *ntree,
|
|||
#define SH_NODE_SEPRGB 120
|
||||
#define SH_NODE_COMBRGB 121
|
||||
#define SH_NODE_HUE_SAT 122
|
||||
#define NODE_DYNAMIC 123
|
||||
|
||||
#define SH_NODE_OUTPUT_MATERIAL 124
|
||||
#define SH_NODE_OUTPUT_WORLD 125
|
||||
|
|
|
@ -1372,18 +1372,6 @@ bNodeType *nodeTypeFind(const char *idname)
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
static void free_dynamic_typeinfo(bNodeType *ntype)
|
||||
{
|
||||
if (ntype->type == NODE_DYNAMIC) {
|
||||
if (ntype->inputs) {
|
||||
MEM_freeN(ntype->inputs);
|
||||
}
|
||||
if (ntype->outputs) {
|
||||
MEM_freeN(ntype->outputs);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* callback for hash value free function */
|
||||
static void node_free_type(void *nodetype_v)
|
||||
{
|
||||
|
@ -1393,11 +1381,6 @@ static void node_free_type(void *nodetype_v)
|
|||
* or we'd want to update *all* active Mains, which we cannot do anyway currently. */
|
||||
update_typeinfo(G_MAIN, nullptr, nullptr, nodetype, nullptr, true);
|
||||
|
||||
/* XXX deprecated */
|
||||
if (nodetype->type == NODE_DYNAMIC) {
|
||||
free_dynamic_typeinfo(nodetype);
|
||||
}
|
||||
|
||||
delete nodetype->fixed_declaration;
|
||||
nodetype->fixed_declaration = nullptr;
|
||||
|
||||
|
|
Loading…
Reference in New Issue