- /* sort and purge dups
- *
- * This whole section is commented out because it's
- * no longer needed -- since the tokenizer already
- * does a merge/purge on the tokens it returns, and
- * we're guaranteed to always be indexing a message
- * with a number higher than any already in the index.
- *
- if ( (op == 1) && (num_msgs > 1) ) {
- msgs = (long *) cdb_bucket->ptr;
- qsort(msgs, num_msgs, sizeof(long), longcmp);
- for (j=0; j<(num_msgs-1); ++j) {
- if (msgs[j] == msgs[j+1]) {
- memmove(&msgs[j], &msgs[j+1], ((num_msgs - j - 1)*sizeof(long)));
- --num_msgs;
- --j;
- }
- }
- }
- */
-