diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-11-14 15:16:05 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-11-14 15:16:05 +0100 |
| commit | b701de666e1c2b89bcff67bb309c5f8997ce5c8c (patch) | |
| tree | 18dc0e91491ada56877cc588f75ab191e59b0481 | |
| parent | 0a9f76eae894c6468bb58a683000e33f1be865b2 (diff) | |
| download | vis-b701de666e1c2b89bcff67bb309c5f8997ce5c8c.tar.gz vis-b701de666e1c2b89bcff67bb309c5f8997ce5c8c.tar.xz | |
ui: remove unused function
| -rw-r--r-- | ui-curses.c | 10 | ||||
| -rw-r--r-- | ui.h | 1 |
2 files changed, 0 insertions, 11 deletions
diff --git a/ui-curses.c b/ui-curses.c index e9e72fd..aa9643a 100644 --- 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, @@ -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*); |
