summaryrefslogtreecommitdiff
path: root/lib/libedit
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1995-04-27 04:49:26 +0000
committermycroft <mycroft@NetBSD.org>1995-04-27 04:49:26 +0000
commitc1a3077d0338bfa89cb4d90ea9f266053da99192 (patch)
tree016dea33a0c6412e47fa129c6ce93864261ae0f2 /lib/libedit
parent4d13217262d7ef45c19439d69dbb6ea52b6a9a42 (diff)
Remove dead code that can't possibly work.
Diffstat (limited to 'lib/libedit')
-rw-r--r--lib/libedit/term.c32
-rw-r--r--lib/libedit/term.h1
2 files changed, 0 insertions, 33 deletions
diff --git a/lib/libedit/term.c b/lib/libedit/term.c
index 7dc5013d58c..29526f39820 100644
--- a/lib/libedit/term.c
+++ b/lib/libedit/term.c
@@ -1085,38 +1085,6 @@ term_bind_arrow(el)
dmap = el->el_map.type == MAP_VI ? el->el_map.vic : el->el_map.emacs;
term_reset_arrow(el);
-
- for (i = 0; i < 4; i++) {
- p = el->el_term.t_str[arrow[i].key];
- if (p && *p) {
- j = (unsigned char) *p;
- /*
- * Assign the arrow keys only if:
- *
- * 1. They are multi-character arrow keys and the user
- * has not re-assigned the leading character, or
- * has re-assigned the leading character to be
- * ED_SEQUENCE_LEAD_IN
- * 2. They are single arrow keys pointing to an unassigned key.
- */
- if (arrow[i].type == XK_NOD)
- key_clear(el, map, p);
- else {
- if (p[1] && (dmap[j] == map[j] ||
- map[j] == ED_SEQUENCE_LEAD_IN)) {
- key_add(el, p, &arrow[i].fun, arrow[i].type);
- map[j] = ED_SEQUENCE_LEAD_IN;
- }
- else if (map[j] == ED_UNASSIGNED) {
- key_clear(el, map, p);
- if (arrow[i].type == XK_CMD)
- map[j] = arrow[i].fun.cmd;
- else
- key_add(el, p, &arrow[i].fun, arrow[i].type);
- }
- }
- }
- }
}
diff --git a/lib/libedit/term.h b/lib/libedit/term.h
index 416e73ee8fa..90332c64216 100644
--- a/lib/libedit/term.h
+++ b/lib/libedit/term.h
@@ -46,7 +46,6 @@
typedef struct { /* Symbolic function key bindings */
char *name; /* name of the key */
- int key; /* Index in termcap table */
key_value_t fun; /* Function bound to it */
int type; /* Type of function */
} fkey_t;