diff --git a/io.c b/io.c index 3d7b00a..0a11bb8 100644 --- a/io.c +++ b/io.c @@ -206,7 +206,6 @@ typedef enum { CLOSE_ALL, CLOSE_TO, CLOSE_FROM } two_way_close_type; #define at_eof(iop) (((iop)->flag & IOP_AT_EOF) != 0) #define has_no_data(iop) ((iop)->dataend == NULL) #define no_data_left(iop) ((iop)->off >= (iop)->dataend) -#define buffer_has_all_data(iop) ((iop)->dataend - (iop)->off == (iop)->public.sbuf.st_size) /* * The key point to the design is to split out the code that searches through @@ -3477,14 +3476,6 @@ get_a_record(char **out, /* pointer to pointer to data */ if (ret == REC_OK) break; - /* - * Likely found the record; if there's no more data - * to be had (like from a tiny regular file), break the - * loop. Otherwise, see if we can read more. - */ - if (ret == TERMNEAREND && buffer_has_all_data(iop)) - break; - /* need to add more data to buffer */ /* shift data down in buffer */ dataend_off = iop->dataend - iop->off;