From 1008a88b434faca71eda68cc5fecdcc4eef29e11 Mon Sep 17 00:00:00 2001 From: Abduqodiri Qurbonzoda Date: Wed, 1 Sep 2021 09:37:27 +0300 Subject: [PATCH] Remove `equals` and `hashCode` implementation of JS AbstractMutableMap.values --- .../js/src/kotlin/collections/AbstractMutableMap.kt | 9 --------- 1 file changed, 9 deletions(-) diff --git a/libraries/stdlib/js/src/kotlin/collections/AbstractMutableMap.kt b/libraries/stdlib/js/src/kotlin/collections/AbstractMutableMap.kt index f0dad87c625..0b1b05ffee6 100644 --- a/libraries/stdlib/js/src/kotlin/collections/AbstractMutableMap.kt +++ b/libraries/stdlib/js/src/kotlin/collections/AbstractMutableMap.kt @@ -126,15 +126,6 @@ public actual abstract class AbstractMutableMap protected actual construct override val size: Int get() = this@AbstractMutableMap.size - // TODO: should we implement them this way? Currently it's unspecified in JVM - override fun equals(other: Any?): Boolean { - if (this === other) return true - if (other !is Collection<*>) return false - return AbstractList.orderedEquals(this, other) - } - - override fun hashCode(): Int = AbstractList.orderedHashCode(this) - override fun checkIsMutable(): Unit = this@AbstractMutableMap.checkIsMutable() } }