From 14168cdb45e376b9bab4a505a319dd7bb7558d8b Mon Sep 17 00:00:00 2001 From: "Kenneth J. Shackleton" Date: Fri, 21 Jun 2024 19:33:31 +0100 Subject: [PATCH] Remove redundant removal. --- .../com/bloomberg/selekt/collections/map/FastLinkedStringMap.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/selekt-java/src/main/kotlin/com/bloomberg/selekt/collections/map/FastLinkedStringMap.kt b/selekt-java/src/main/kotlin/com/bloomberg/selekt/collections/map/FastLinkedStringMap.kt index 6c3f9bbda7..9ae7b46217 100644 --- a/selekt-java/src/main/kotlin/com/bloomberg/selekt/collections/map/FastLinkedStringMap.kt +++ b/selekt-java/src/main/kotlin/com/bloomberg/selekt/collections/map/FastLinkedStringMap.kt @@ -61,9 +61,7 @@ class FastLinkedStringMap( override fun clear() { super.clear() spare = null - head = null var entry = tail - tail = null while (entry != null) { val previous = entry.previous disposal(entry.unlink().value!!)