diff --git a/dict/dcompact.c b/dict/dcompact.c index 4afccef0..480b90c1 100644 --- a/dict/dcompact.c +++ b/dict/dcompact.c @@ -108,19 +108,13 @@ int dict_copy_compact(BFiles bfs, const char *from_name, const char *to_name) { void *buf; int size; -#if 0 - yaz_log(YLOG_LOG, "map[%d] = %d", i, map[i]); -#endif dict_bf_readp(dict_from->dbf, i, &buf); size = ((DICT_size(buf)+sizeof(short)-1)/sizeof(short) + DICT_nodir(buf))*sizeof(short); map[i+1] = map[i] + size; no_dir += DICT_nodir(buf); } -#if 0 - yaz_log(YLOG_LOG, "map[%d] = %d", i, map[i]); yaz_log(YLOG_LOG, "nodir = %d", no_dir); -#endif dict_to->head.root = map[1]; dict_to->head.last = map[i]; for (i = 1; i< (int) (dict_from->head.last); i++) diff --git a/dict/dicttest.c b/dict/dicttest.c index 40ab7a74..2d7d3f75 100644 --- a/dict/dicttest.c +++ b/dict/dicttest.c @@ -296,6 +296,7 @@ int main (int argc, char **argv) { yaz_log (YLOG_LOG, "No of new..... %d", no_of_new); yaz_log (YLOG_LOG, "No of change.. %d", no_of_change); + yaz_log (YLOG_LOG, "No of same.... %d", no_of_same); } } else diff --git a/index/trunc.c b/index/trunc.c index 70675d44..9dcf1aa2 100644 --- a/index/trunc.c +++ b/index/trunc.c @@ -132,7 +132,6 @@ static RSET rset_trunc_r(ZebraHandle zi, const char *term, int length, { RSET result; RSFD result_rsfd; - int nn = 0; result = rset_create_temp(rset_nmem, kctrl, scope, res_get(zi->res, "setTmpDir"), termid); @@ -186,7 +185,6 @@ static RSET rset_trunc_r(ZebraHandle zi, const char *term, int length, int n = ti->indx[ti->ptr[1]]; rset_write(result_rsfd, ti->heap[ti->ptr[1]]); - nn++; while (1) { @@ -233,7 +231,6 @@ static RSET rset_trunc_r(ZebraHandle zi, const char *term, int length, int n = ti->indx[ti->ptr[1]]; rset_write(result_rsfd, ti->heap[ti->ptr[1]]); - nn++; if (preserve_position) { heap_delete(ti); @@ -269,7 +266,6 @@ static RSET rset_trunc_r(ZebraHandle zi, const char *term, int length, ISAMS_PP *ispt; int i; struct trunc_info *ti; - int nn = 0; ispt = (ISAMS_PP *) xmalloc(sizeof(*ispt) * (to-from)); @@ -288,7 +284,6 @@ static RSET rset_trunc_r(ZebraHandle zi, const char *term, int length, int n = ti->indx[ti->ptr[1]]; rset_write(result_rsfd, ti->heap[ti->ptr[1]]); - nn++; while (1) { if (!isams_pp_read(ispt[n], ti->tmpbuf)) @@ -333,7 +328,6 @@ static RSET rset_trunc_r(ZebraHandle zi, const char *term, int length, int n = ti->indx[ti->ptr[1]]; rset_write(result_rsfd, ti->heap[ti->ptr[1]]); - nn++; if (preserve_position) { diff --git a/index/zsets.c b/index/zsets.c index 586744d3..0ecb23fb 100644 --- a/index/zsets.c +++ b/index/zsets.c @@ -1121,7 +1121,6 @@ ZEBRA_RES resultSetRank(ZebraHandle zh, ZebraSet zebraSet, RSFD rfd = rset_open(rset, RSETF_READ); struct rank_control *rc = rank_class->control; int score; - zint count = 0; void *handle = (*rc->begin) (zh->reg, rank_class->class_handle, rset, nmem, terms, numTerms); zint psysno = 0; /* previous doc id / sys no */ @@ -1158,7 +1157,6 @@ ZEBRA_RES resultSetRank(ZebraHandle zh, ZebraSet zebraSet, &stop_flag); /* insert the hit. A=Ascending */ resultSetInsertRank(zh, sort_info, psysno, score, 'A'); - count++; } psysno = this_sys; if (zh->m_staticrank) @@ -1172,7 +1170,6 @@ ZEBRA_RES resultSetRank(ZebraHandle zh, ZebraSet zebraSet, score = (*rc->calc)(handle, psysno, pstaticrank, &stop_flag); /* insert the hit. A=Ascending */ resultSetInsertRank(zh, sort_info, psysno, score, 'A'); - count++; } (*rc->end)(zh->reg, handle); rset_close(rfd);