aboutsummaryrefslogtreecommitdiff
path: root/window-choose.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2014-12-15 09:24:15 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2014-12-15 09:24:15 +0000
commitf495b150fa06cf0556159fe15e0dd2e0a09bb445 (patch)
tree7c48105f6febbe65b9cbed3027bffc1b8bc6e0d5 /window-choose.c
parent3771ab7c67ed002faa980b353bcc858669131b58 (diff)
parentccbe2545d9857e03731eddb9757989b9f52dc785 (diff)
downloadrtmux-f495b150fa06cf0556159fe15e0dd2e0a09bb445.tar.gz
rtmux-f495b150fa06cf0556159fe15e0dd2e0a09bb445.tar.bz2
rtmux-f495b150fa06cf0556159fe15e0dd2e0a09bb445.zip
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
Diffstat (limited to 'window-choose.c')
-rw-r--r--window-choose.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/window-choose.c b/window-choose.c
index db092872..56016394 100644
--- a/window-choose.c
+++ b/window-choose.c
@@ -932,36 +932,6 @@ window_choose_add_session(struct window_pane *wp, struct client *c,
}
struct window_choose_data *
-window_choose_add_item(struct window_pane *wp, struct client *c,
- struct winlink *wl, const char *template, const char *action, u_int idx)
-{
- struct window_choose_data *wcd;
- char *expanded;
-
- wcd = window_choose_data_create(TREE_OTHER, c, c->session);
- wcd->idx = wl->idx;
-
- wcd->ft_template = xstrdup(template);
- format_add(wcd->ft, "line", "%u", idx);
- format_session(wcd->ft, wcd->start_session);
- format_winlink(wcd->ft, wcd->start_session, wl);
- format_window_pane(wcd->ft, wl->window->active);
-
- /*
- * Interpolate action here, since the data we pass back is the expanded
- * template itself.
- */
- xasprintf(&expanded, "%s", format_expand(wcd->ft, wcd->ft_template));
- wcd->command = cmd_template_replace(action, expanded, 1);
- free(expanded);
-
- window_choose_add(wp, wcd);
-
- return (wcd);
-
-}
-
-struct window_choose_data *
window_choose_add_window(struct window_pane *wp, struct client *c,
struct session *s, struct winlink *wl, const char *template,
const char *action, u_int idx)