Remove redundant @OptIn

This commit is contained in:
Abduqodiri Qurbonzoda
2021-04-12 15:44:52 +03:00
parent f253b1fb15
commit 3a8d1c4b5e
10 changed files with 1 additions and 17 deletions
@@ -436,10 +436,8 @@ internal class MapBuilder<K, V> private constructor(
private const val INITIAL_MAX_PROBE_DISTANCE = 2
private const val TOMBSTONE = -1
@OptIn(ExperimentalStdlibApi::class)
private fun computeHashSize(capacity: Int): Int = (capacity.coerceAtLeast(1) * 3).takeHighestOneBit()
@OptIn(ExperimentalStdlibApi::class)
private fun computeShift(hashSize: Int): Int = hashSize.countLeadingZeroBits() + 1
}