X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=rset%2Frstemp.c;h=325faf211152eaf797b49bf02096d03bcd610cab;hb=9c50a60b4bd5de297f77866fd173c78a10328498;hp=0a3b5829d98cd77ddf4f3dc6b5dc5135c13ccd67;hpb=e184d932ecfafa617833b4d45e123faa87969af1;p=idzebra-moved-to-github.git diff --git a/rset/rstemp.c b/rset/rstemp.c index 0a3b582..325faf2 100644 --- a/rset/rstemp.c +++ b/rset/rstemp.c @@ -1,4 +1,4 @@ -/* $Id: rstemp.c,v 1.43 2004-08-20 14:44:46 heikki Exp $ +/* $Id: rstemp.c,v 1.44 2004-08-24 08:52:30 heikki Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003 Index Data Aps @@ -79,7 +79,6 @@ struct rset_temp_info { struct rset_temp_rfd { struct rset_temp_info *info; struct rset_temp_rfd *next; - zint *countp; void *buf; size_t pos_cur; /* current position in set */ zint cur; /* number of the current hit */ @@ -137,7 +136,6 @@ static RSFD r_open (RSET ct, int flag) rfd->info = info; r_rewind (rfd); - *rfd->countp = 0; rfd->buf = xmalloc (info->key_size); return rfd; @@ -330,12 +328,6 @@ static int r_read (RSFD rfd, void *buf) memcpy (buf, info->buf_mem + (mrfd->pos_cur - info->pos_buf), info->key_size); mrfd->pos_cur = nc; - - if (*mrfd->countp == 0 || (*info->cmp)(buf, mrfd->buf) > 1) - { - memcpy (mrfd->buf, buf, mrfd->info->key_size); - (*mrfd->countp)++; - } mrfd->cur++; return 1; }