=== modified file 'man/termkey_new.3' --- man/termkey_new.3 2012-01-26 12:55:16 +0000 +++ man/termkey_new.3 2012-01-21 23:26:47 +0000 @@ -7,15 +7,12 @@ .sp .BI "TERMKEY_CHECK_VERSION;" .BI "TermKey *termkey_new(int " fd ", int " flags ); -.BI "TermKey *termkey_new_abstract(const char *" term ", int " flags ); .BI "void termkey_destroy(TermKey *" tk ); .fi .sp Link with \fI\-ltermkey\fP. .SH DESCRIPTION -\fBtermkey_new\fP() creates a new \fBtermkey\fP(7) instance connected to the file handle opened by \fIfd\fP using the \fIflags\fP. The \fITermKey\fP structure should be considered opaque; its contents are not intended for use outside of the library. -.PP -\fBtermkey_new_abstract\fP() creates a new \fBtermkey\fP() instance with no file handle associated. As this is usually done for handling other sources of terminal byte input, it also takes a string indicating the termtype to use. +\fBtermkey_new\fP() creates a new \fBtermkey\fP(7) instance connected to the file handle opened by \fIfd\fP using the \fIflags\fP. The \fITermKey\fP structure should be considered opaque; its contents are not intended for use outside of the library. If \fIfd\fP is given the value -1, then no file handle will be associated. .PP \fBtermkey_destroy\fP() destroys the given instance and releases any resources controlled by it. It will not close the underlying filehandle given as the \fIfd\fP argument to \fBtermkey_new\fP(). .PP === modified file 'termkey.c' --- termkey.c 2012-01-26 12:55:16 +0000 +++ termkey.c 2012-01-26 10:13:03 +0000 @@ -369,24 +369,6 @@ return tk; } -TermKey *termkey_new_abstract(const char *term, int flags) -{ - TermKey *tk = termkey_alloc(); - if(!tk) - return NULL; - - tk->fd = -1; - - termkey_set_flags(tk, flags); - - if(!termkey_init(tk, term)) { - free(tk); - return NULL; - } - - return tk; -} - void termkey_free(TermKey *tk) { free(tk->buffer); tk->buffer = NULL; === modified file 'termkey.h.in' --- termkey.h.in 2012-01-26 12:55:16 +0000 +++ termkey.h.in 2012-01-18 16:29:29 +0000 @@ -157,7 +157,6 @@ void termkey_check_version(int major, int minor); TermKey *termkey_new(int fd, int flags); -TermKey *termkey_new_abstract(const char *term, int flags); void termkey_free(TermKey *tk); void termkey_destroy(TermKey *tk);