=== modified file 'driver-ti.c' --- driver-ti.c 2016-11-30 18:18:55 +0000 +++ driver-ti.c 2016-11-30 18:17:07 +0000 @@ -210,10 +210,6 @@ #else const char *value = tigetstr(strnames[i]); #endif - - if(ti->tk->ti_getstr_hook) - value = (ti->tk->ti_getstr_hook)(name, value, ti->tk->ti_getstr_hook_data); - if(!value || value == (char*)-1) continue; === modified file 'termkey-internal.h' --- termkey-internal.h 2016-11-30 18:18:55 +0000 +++ termkey-internal.h 2012-11-30 14:35:23 +0000 @@ -44,9 +44,6 @@ struct termios restore_termios; char restore_termios_valid; - TermKey_Terminfo_Getstr_Hook *ti_getstr_hook; - void *ti_getstr_hook_data; - int waittime; // msec char is_closed; === modified file 'termkey.c' --- termkey.c 2016-11-30 18:18:55 +0000 +++ termkey.c 2016-11-30 17:51:58 +0000 @@ -278,9 +278,6 @@ tk->restore_termios_valid = 0; - tk->ti_getstr_hook = NULL; - tk->ti_getstr_hook_data = NULL; - tk->waittime = 50; /* msec */ tk->is_closed = 0; @@ -466,12 +463,6 @@ termkey_free(tk); } -void termkey_hook_terminfo_getstr(TermKey *tk, TermKey_Terminfo_Getstr_Hook *hookfn, void *data) -{ - tk->ti_getstr_hook = hookfn; - tk->ti_getstr_hook_data = data; -} - int termkey_start(TermKey *tk) { if(tk->is_started) === modified file 'termkey.h.in' --- termkey.h.in 2016-11-30 18:18:55 +0000 +++ termkey.h.in 2016-11-30 17:51:58 +0000 @@ -167,10 +167,6 @@ void termkey_free(TermKey *tk); void termkey_destroy(TermKey *tk); -/* Mostly-undocumented hooks for doing evil evil things */ -typedef const char *TermKey_Terminfo_Getstr_Hook(const char *name, const char *value, void *data); -void termkey_hook_terminfo_getstr(TermKey *tk, TermKey_Terminfo_Getstr_Hook *hookfn, void *data); - int termkey_start(TermKey *tk); int termkey_stop(TermKey *tk); int termkey_is_started(TermKey *tk);