Cleanup: Remove unused scene argument from foreach_nodeclass

This commit is contained in:
Brecht Van Lommel
2024-05-10 19:20:03 +02:00
parent 33e8b12a43
commit 0d4e4e3f42
6 changed files with 6 additions and 6 deletions

View File

@@ -426,7 +426,7 @@ struct bNodeTreeType {
/* callbacks */
/* Iteration over all node classes. */
void (*foreach_nodeclass)(Scene *scene, void *calldata, bNodeClassCallback func);
void (*foreach_nodeclass)(void *calldata, bNodeClassCallback func);
/* Check visibility in the node editor */
bool (*poll)(const bContext *C, bNodeTreeType *ntreetype);
/* Select a node tree from the context */

View File

@@ -617,7 +617,7 @@ static void ui_template_node_link_menu(bContext *C, uiLayout *layout, void *but_
arg->layout = split;
if (ntreetype && ntreetype->foreach_nodeclass) {
ntreetype->foreach_nodeclass(scene, arg, node_menu_column_foreach_cb);
ntreetype->foreach_nodeclass(arg, node_menu_column_foreach_cb);
}
column = uiLayoutColumn(split, false);

View File

@@ -46,7 +46,7 @@ static void composite_get_from_context(
*r_ntree = scene->nodetree;
}
static void foreach_nodeclass(Scene * /*scene*/, void *calldata, bNodeClassCallback func)
static void foreach_nodeclass(void *calldata, bNodeClassCallback func)
{
func(calldata, NODE_CLASS_INPUT, N_("Input"));
func(calldata, NODE_CLASS_OUTPUT, N_("Output"));

View File

@@ -71,7 +71,7 @@ static void geometry_node_tree_update(bNodeTree *ntree)
ntree_update_reroute_nodes(ntree);
}
static void foreach_nodeclass(Scene * /*scene*/, void *calldata, bNodeClassCallback func)
static void foreach_nodeclass(void *calldata, bNodeClassCallback func)
{
func(calldata, NODE_CLASS_INPUT, N_("Input"));
func(calldata, NODE_CLASS_GEOMETRY, N_("Geometry"));

View File

@@ -106,7 +106,7 @@ static void shader_get_from_context(
}
}
static void foreach_nodeclass(Scene * /*scene*/, void *calldata, bNodeClassCallback func)
static void foreach_nodeclass(void *calldata, bNodeClassCallback func)
{
func(calldata, NODE_CLASS_INPUT, N_("Input"));
func(calldata, NODE_CLASS_OUTPUT, N_("Output"));

View File

@@ -77,7 +77,7 @@ static void texture_get_from_context(
}
}
static void foreach_nodeclass(Scene * /*scene*/, void *calldata, bNodeClassCallback func)
static void foreach_nodeclass(void *calldata, bNodeClassCallback func)
{
func(calldata, NODE_CLASS_INPUT, N_("Input"));
func(calldata, NODE_CLASS_OUTPUT, N_("Output"));