From: NeilBrown Date: Fri, 11 Dec 2015 22:34:44 +0000 (+1100) Subject: remove call_str and call_extra X-Git-Tag: lca2016~51 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=0a91ff15c4b62a4ae2e4b0cb4b2384df16bdfd24;p=edlib.git remove call_str and call_extra no longer used. Signed-off-by: NeilBrown --- diff --git a/core.h b/core.h index 15741136..54785a05 100644 --- a/core.h +++ b/core.h @@ -618,33 +618,3 @@ static inline int comm_call7(struct command *comm, char *key, ci.comm = comm; return comm->func(&ci); } - -static inline int call_extra(char *key, struct pane *focus, int numeric, struct mark *m, - int extra) -{ - struct cmd_info ci = {0}; - - ci.key = key; - ci.focus = focus; - ci.numeric = numeric; - ci.extra = extra; - ci.mark = m; - if (!key_handle_focus(&ci)) - return 0; - return ci.extra; -} - -static inline char *call_str(char *key, struct pane *focus, int numeric, struct mark *m, - char *str) -{ - struct cmd_info ci = {0}; - - ci.key = key; - ci.focus = focus; - ci.numeric = numeric; - ci.str = str; - ci.mark = m; - if (!key_handle_focus(&ci)) - return NULL; - return ci.str; -}