diff options
author | 2019-05-12 07:27:08 +0000 | |
---|---|---|
committer | 2019-05-12 07:27:08 +0000 | |
commit | 03c44d74ca417f13a85bd73a8ab759812d9d0cdb (patch) | |
tree | 422882aee7a2246973a550040c825d5997c2a2e8 /usr.bin/tmux/menu.c | |
parent | sort; (diff) | |
download | wireguard-openbsd-03c44d74ca417f13a85bd73a8ab759812d9d0cdb.tar.xz wireguard-openbsd-03c44d74ca417f13a85bd73a8ab759812d9d0cdb.zip |
Remove menu_create_from_items, I thought I would use it for some later
work but I don't need it.
Diffstat (limited to 'usr.bin/tmux/menu.c')
-rw-r--r-- | usr.bin/tmux/menu.c | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/usr.bin/tmux/menu.c b/usr.bin/tmux/menu.c index f0452e7a5af..649be560a44 100644 --- a/usr.bin/tmux/menu.c +++ b/usr.bin/tmux/menu.c @@ -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 <nicholas.marriott@gmail.com> @@ -103,24 +103,8 @@ menu_parse_item(struct menu *menu, const char *s, struct client *c, } 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; |