]> git.neil.brown.name Git - edlib.git/commitdiff
Remove doc_from_pane
authorNeilBrown <neil@brown.name>
Thu, 10 Dec 2015 04:17:55 +0000 (15:17 +1100)
committerNeilBrown <neil@brown.name>
Thu, 10 Dec 2015 04:20:34 +0000 (15:20 +1100)
No more callers.

Signed-off-by: NeilBrown <neil@brown.name>
core-doc.c
core.h

index bd3bb81b290f9ea4a303b4c01d804b85098140e7..6ae51883ac65cdb580c28342925214a9f014c65d 100644 (file)
@@ -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 6872ddf390140ce1028ed4c19bf911434136b41c..f4d594593c5dd57786b123d60ab729bb4c634851 100644 (file)
--- 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};