From af353fda17294bf611609b7f501e82a98914679b Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Thu, 10 Dec 2015 15:17:55 +1100 Subject: [PATCH] Remove doc_from_pane No more callers. Signed-off-by: NeilBrown --- core-doc.c | 5 ----- core.h | 10 ---------- 2 files changed, 15 deletions(-) diff --git a/core-doc.c b/core-doc.c index bd3bb81b..6ae51883 100644 --- a/core-doc.c +++ b/core-doc.c @@ -451,11 +451,6 @@ DEF_CMD(doc_handle) return ret + 1; } - if (strcmp(ci->key, "doc:find") == 0) { - ci->misc = dd->doc; - return 1; - } - if (strcmp(ci->key, "doc:vmark-get") == 0) { struct mark *m, *m2; m = do_vmark_first(dd->doc, ci->numeric); diff --git a/core.h b/core.h index 6872ddf3..f4d59459 100644 --- a/core.h +++ b/core.h @@ -467,16 +467,6 @@ static inline int doc_find_view(struct pane *p, struct command *c) return ret - 1; } -static inline struct doc *doc_from_pane(struct pane *p) -{ - struct cmd_info ci = {0}; - ci.focus = p; - ci.key = "doc:find"; - if (key_handle_focus(&ci) == 0) - return NULL; - return ci.misc; -} - static inline int call3(char *key, struct pane *focus, int numeric, struct mark *m) { struct cmd_info ci = {0}; -- 2.39.5