summaryrefslogtreecommitdiff
path: root/src/core/idhash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/idhash.c')
-rw-r--r--src/core/idhash.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/core/idhash.c b/src/core/idhash.c
index a111b53c..943809d7 100644
--- a/src/core/idhash.c
+++ b/src/core/idhash.c
@@ -76,22 +76,6 @@ nni_idhash_fini(nni_idhash *h)
}
void
-nni_idhash_reclaim(nni_idhash *h)
-{
- nni_mtx_lock(&h->ih_mtx);
-
- // Reclaim the buffer if we want, but preserve the limits.
- if ((h->ih_count == 0) && (h->ih_cap != 0) && (h->ih_walkers == 0)) {
- NNI_FREE_STRUCTS(h->ih_entries, h->ih_cap);
- h->ih_cap = 0;
- h->ih_entries = NULL;
- h->ih_minload = 0;
- h->ih_maxload = 0;
- }
- nni_mtx_unlock(&h->ih_mtx);
-}
-
-void
nni_idhash_set_limits(
nni_idhash *h, uint32_t minval, uint32_t maxval, uint32_t start)
{