vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 301e0163ac228bd69eec34366204a77ae310549d parent 8381e6731fa99ed8447a4cf0c8e8a7466b6bd4fd Author: Marc André Tanner <mat@brain-dump.org> Date: Mon, 14 Nov 2016 15:16:05 +0100 ui: remove unused function Diffstat:
| M | ui-curses.c | | | 10 | ---------- |
| M | ui.h | | | 1 | - |
2 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/ui-curses.c b/ui-curses.c @@ -1085,15 +1085,6 @@ static void ui_suspend(Ui *ui) { raise(SIGSTOP); } -static bool ui_haskey(Ui *ui) { - nodelay(stdscr, TRUE); - int c = getch(); - if (c != ERR) - ungetch(c); - nodelay(stdscr, FALSE); - return c != ERR; -} - static bool ui_getkey(Ui *ui, TermKeyKey *key) { UiCurses *uic = (UiCurses*)ui; TermKeyResult ret = termkey_getkey(uic->termkey, key); @@ -1192,7 +1183,6 @@ Ui *ui_curses_new(void) { .die = ui_die, .info = ui_info, .info_hide = ui_info_hide, - .haskey = ui_haskey, .getkey = ui_getkey, .terminal_save = ui_terminal_save, .terminal_restore = ui_terminal_restore, diff --git a/ui.h b/ui.h @@ -67,7 +67,6 @@ struct Ui { void (*update)(Ui*); void (*suspend)(Ui*); bool (*getkey)(Ui*, TermKeyKey*); - bool (*haskey)(Ui*); void (*terminal_save)(Ui*); void (*terminal_restore)(Ui*); TermKey* (*termkey_get)(Ui*);