Cleanup: Remove empty node socket template array

This commit is contained in:
2022-01-05 16:45:41 -05:00
parent c240ab70ae
commit e55a6bf82b

View File

@@ -29,9 +29,6 @@ static bNodeSocketTemplate inputs[] = {
{SOCK_RGBA, N_("Color"), 1.0f, 0.0f, 0.0f, 1.0f}, {SOCK_RGBA, N_("Color"), 1.0f, 0.0f, 0.0f, 1.0f},
{-1, ""}, {-1, ""},
}; };
static bNodeSocketTemplate outputs[] = {
{-1, ""},
};
static void exec(void *data, static void exec(void *data,
int UNUSED(thread), int UNUSED(thread),
@@ -56,7 +53,7 @@ void register_node_type_tex_viewer(void)
static bNodeType ntype; static bNodeType ntype;
tex_node_type_base(&ntype, TEX_NODE_VIEWER, "Viewer", NODE_CLASS_OUTPUT); tex_node_type_base(&ntype, TEX_NODE_VIEWER, "Viewer", NODE_CLASS_OUTPUT);
node_type_socket_templates(&ntype, inputs, outputs); node_type_socket_templates(&ntype, inputs, NULL);
node_type_exec(&ntype, NULL, NULL, exec); node_type_exec(&ntype, NULL, NULL, exec);
ntype.no_muting = true; ntype.no_muting = true;