Cleanup: Nodes: remove dead code
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user