summaryrefslogtreecommitdiffstats
path: root/minzip/Hash.c
diff options
context:
space:
mode:
authorNanik Tolaram <nanikjava@gmail.com>2015-02-08 12:31:14 +0100
committerNanik Tolaram <nanikjava@gmail.com>2015-02-08 12:31:14 +0100
commit4e8e93b6661f4de86c295b76fff82b8815266780 (patch)
treee1c8501f94120da11578efef343b80679032a699 /minzip/Hash.c
parentMerge "There's no GPL code in 'updater'." (diff)
downloadandroid_bootable_recovery-4e8e93b6661f4de86c295b76fff82b8815266780.tar
android_bootable_recovery-4e8e93b6661f4de86c295b76fff82b8815266780.tar.gz
android_bootable_recovery-4e8e93b6661f4de86c295b76fff82b8815266780.tar.bz2
android_bootable_recovery-4e8e93b6661f4de86c295b76fff82b8815266780.tar.lz
android_bootable_recovery-4e8e93b6661f4de86c295b76fff82b8815266780.tar.xz
android_bootable_recovery-4e8e93b6661f4de86c295b76fff82b8815266780.tar.zst
android_bootable_recovery-4e8e93b6661f4de86c295b76fff82b8815266780.zip
Diffstat (limited to 'minzip/Hash.c')
-rw-r--r--minzip/Hash.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/minzip/Hash.c b/minzip/Hash.c
index 8c6ca9bc2..8f8ed68e5 100644
--- a/minzip/Hash.c
+++ b/minzip/Hash.c
@@ -140,7 +140,6 @@ static bool resizeHash(HashTable* pHashTable, int newSize)
int i;
assert(countTombStones(pHashTable) == pHashTable->numDeadEntries);
- //LOGI("before: dead=%d\n", pHashTable->numDeadEntries);
pNewEntries = (HashEntry*) calloc(newSize, sizeof(HashTable));
if (pNewEntries == NULL)
@@ -196,7 +195,6 @@ void* mzHashTableLookup(HashTable* pHashTable, unsigned int itemHash, void* item
(*cmpFunc)(pEntry->data, item) == 0)
{
/* match */
- //LOGD("+++ match on entry %d\n", pEntry - pHashTable->pEntries);
break;
}
@@ -206,8 +204,6 @@ void* mzHashTableLookup(HashTable* pHashTable, unsigned int itemHash, void* item
break; /* edge case - single-entry table */
pEntry = pHashTable->pEntries;
}
-
- //LOGI("+++ look probing %d...\n", pEntry - pHashTable->pEntries);
}
if (pEntry->data == NULL) {
@@ -228,10 +224,6 @@ void* mzHashTableLookup(HashTable* pHashTable, unsigned int itemHash, void* item
abort();
}
/* note "pEntry" is now invalid */
- } else {
- //LOGW("okay %d/%d/%d\n",
- // pHashTable->numEntries, pHashTable->tableSize,
- // (pHashTable->tableSize * LOAD_NUMER) / LOAD_DENOM);
}
/* full table is bad -- search for nonexistent never halts */
@@ -264,7 +256,6 @@ bool mzHashTableRemove(HashTable* pHashTable, unsigned int itemHash, void* item)
pEnd = &pHashTable->pEntries[pHashTable->tableSize];
while (pEntry->data != NULL) {
if (pEntry->data == item) {
- //LOGI("+++ stepping on entry %d\n", pEntry - pHashTable->pEntries);
pEntry->data = HASH_TOMBSTONE;
pHashTable->numEntries--;
pHashTable->numDeadEntries++;
@@ -277,8 +268,6 @@ bool mzHashTableRemove(HashTable* pHashTable, unsigned int itemHash, void* item)
break; /* edge case - single-entry table */
pEntry = pHashTable->pEntries;
}
-
- //LOGI("+++ del probing %d...\n", pEntry - pHashTable->pEntries);
}
return false;