summaryrefslogtreecommitdiff
path: root/src/htshash.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-06-03 16:26:25 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-06-03 16:26:25 +0000
commited79961b7a27c03eae6fc8953406ce4ee45d8729 (patch)
tree7bf5c57df014c646ff2a91a4700bcde862f65963 /src/htshash.c
parentd3c14c9d1fdc1b2d193a2e0a71d5901e2450ca36 (diff)
Potential fix for htshash.c:330 assertion failure: "error invalidating hash entry"
Diffstat (limited to 'src/htshash.c')
-rw-r--r--src/htshash.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/htshash.c b/src/htshash.c
index 4e0475f..8cc2f1f 100644
--- a/src/htshash.c
+++ b/src/htshash.c
@@ -319,14 +319,3 @@ void hash_write(hash_struct * hash, size_t lpos) {
inthash_write(hash->former_adrfil, (char*) (*hash->liens)[lpos], lpos);
}
}
-
-void hash_invalidate_entry(hash_struct * hash, int lpos) {
- if (inthash_remove(hash->adrfil, (char*) (*hash->liens)[lpos])) {
- /* devalidate entry now it is removed from hashtable */
- strcpybuff((*hash->liens)[lpos]->adr, "!");
- /* add back */
- inthash_write(hash->adrfil, (char*) (*hash->liens)[lpos], lpos);
- } else {
- assertf(! "error invalidating hash entry");
- }
-}