=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/menu.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- src/usr.bin/tmux/menu.c 2019/05/10 18:04:06 1.1 +++ src/usr.bin/tmux/menu.c 2019/05/12 07:27:08 1.2 @@ -1,4 +1,4 @@ -/* $OpenBSD: menu.c,v 1.1 2019/05/10 18:04:06 nicm Exp $ */ +/* $OpenBSD: menu.c,v 1.2 2019/05/12 07:27:08 nicm Exp $ */ /* * Copyright (c) 2019 Nicholas Marriott @@ -103,24 +103,8 @@ } struct menu * -menu_create_from_items(struct menu_item *items, u_int count, struct client *c, - struct cmd_find_state *fs, const char *title) -{ - struct menu *menu; - u_int i; - - menu = xcalloc(1, sizeof *menu); - menu->title = xstrdup(title); - - for (i = 0; i < count; i++) - menu_add_item(menu, &items[i], c, fs); - - return (menu); -} - -struct menu * -menu_create_from_string(const char *s, struct client *c, - struct cmd_find_state *fs, const char *title) +menu_create(const char *s, struct client *c, struct cmd_find_state *fs, + const char *title) { struct menu *menu; char *copy, *string, *next;