diff --git a/source/blender/editors/space_node/drawnode.cc b/source/blender/editors/space_node/drawnode.cc index 330f9f081c5..d3a4be527ab 100644 --- a/source/blender/editors/space_node/drawnode.cc +++ b/source/blender/editors/space_node/drawnode.cc @@ -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) {