Cleanup: Nodes: remove dead code

This commit is contained in:
Jacques Lucke
2025-09-28 20:11:05 +02:00
parent e7cae0b220
commit 2b6da476f2

View File

@@ -1070,20 +1070,6 @@ static void draw_node_socket_without_value(uiLayout *layout,
draw_node_socket_name_editable(layout, sock, text);
}
/* Menu sockets hide the socket name by default to save space. Some nodes have multiple menu
* sockets which requires showing the name anyway to avoid ambiguity. */
static bool show_menu_socket_name(const bNode *node, const bNodeSocket *sock)
{
BLI_assert(sock->type == SOCK_MENU);
if (node->is_type("GeometryNodeMenuSwitch") && sock->index() > 0) {
return true;
}
if (node->is_type("GeometryNodeSwitch")) {
return true;
}
return false;
}
static void std_node_socket_draw(
bContext *C, uiLayout *layout, PointerRNA *ptr, PointerRNA *node_ptr, StringRefNull label)
{