From f6712d984ac70b1743151cc15d940c3976488b51 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Mon, 10 Aug 2020 18:43:16 +0800 Subject: [PATCH] [td-255]remove unused functions. --- src/util/src/hash.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/util/src/hash.c b/src/util/src/hash.c index 93514f87cf..8df3e3d4d3 100644 --- a/src/util/src/hash.c +++ b/src/util/src/hash.c @@ -88,23 +88,6 @@ static FORCE_INLINE SHashNode *doSearchInEntryList(SHashEntry *pe, const void *k return pNode; } -static FORCE_INLINE SHashNode *doSerchPrevInEntryList(SHashEntry *pe, const void *key, size_t keyLen, uint32_t hashVal) { - SHashNode *prev= NULL; - SHashNode *pNode = pe->next; - - while (pNode) { - if ((pNode->keyLen == keyLen) && (memcmp(pNode->key, key, keyLen) == 0)) { - assert(pNode->hashVal == hashVal); - break; - } - - prev = pNode; - pNode = pNode->next; - } - - return prev; -} - /** * Resize the hash list if the threshold is reached * -- GitLab