From d9885ac807238127101007aaec2d118c5b9ce7c7 Mon Sep 17 00:00:00 2001 From: Brian Olsen Date: Wed, 17 Jan 2024 20:57:58 +0000 Subject: [PATCH] restore IntrusiveHashMap insert code to tscore --- lib/swoc/include/swoc/IntrusiveHashMap.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/swoc/include/swoc/IntrusiveHashMap.h b/lib/swoc/include/swoc/IntrusiveHashMap.h index 4bbe3b63615..201f093e71b 100644 --- a/lib/swoc/include/swoc/IntrusiveHashMap.h +++ b/lib/swoc/include/swoc/IntrusiveHashMap.h @@ -514,15 +514,6 @@ IntrusiveHashMap::insert(value_type *v) { if (spot != bucket->_v) { mixed_p = true; // found some other key, it's going to be mixed. } - if (spot != limit) { - // If an equal key was found, walk past those to insert at the upper end of the range. - do { - spot = H::next_ptr(spot); - } while (spot != limit && H::equal(key, H::key_of(spot))); - if (spot != limit) { // something not equal past last equivalent, it's going to be mixed. - mixed_p = true; - } - } _list.insert_before(spot, v); if (spot == bucket->_v) { // added before the bucket start, update the start.