Skip to content

Commit e4c5e15

Browse files
committed
remove useless constant redefinition
1 parent 3cdc8ec commit e4c5e15

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

stdlib/public/core/HashedCollections.swift.gyb

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2487,9 +2487,6 @@ internal class _RawNative${Self}Storage:
24872487
internal final var values: UnsafeMutableRawPointer
24882488
% end
24892489

2490-
internal final let maxLoadFactorInverse: Double =
2491-
_hashContainerDefaultMaxLoadFactorInverse
2492-
24932490
// This API is unsafe and needs a `_fixLifetime` in the caller.
24942491
internal final
24952492
var _initializedHashtableEntriesBitMapBuffer: UnsafeMutablePointer<UInt> {
@@ -2914,10 +2911,6 @@ internal struct _Native${Self}Buffer<${TypeParameters}> {
29142911
}
29152912
}
29162913

2917-
internal var _maxLoadFactorInverse: Double {
2918-
return _storage.maxLoadFactorInverse
2919-
}
2920-
29212914
internal
29222915
var _initializedHashtableEntriesBitMapBuffer: UnsafeMutablePointer<UInt> {
29232916
return _storage._initializedHashtableEntriesBitMapBuffer
@@ -4235,7 +4228,7 @@ internal enum _Variant${Self}Buffer<${TypeParametersDecl}> : _HashBuffer {
42354228
? asNative.capacity
42364229
: NativeBuffer.minimumCapacity(
42374230
minimumCount: asNative.count + 1,
4238-
maxLoadFactorInverse: asNative._maxLoadFactorInverse)
4231+
maxLoadFactorInverse: _hashContainerDefaultMaxLoadFactorInverse)
42394232

42404233
let (_, capacityChanged) = ensureUniqueNativeBuffer(minCapacity)
42414234
if capacityChanged {
@@ -4300,7 +4293,7 @@ internal enum _Variant${Self}Buffer<${TypeParametersDecl}> : _HashBuffer {
43004293

43014294
let minCapacity = NativeBuffer.minimumCapacity(
43024295
minimumCount: asNative.count + 1,
4303-
maxLoadFactorInverse: asNative._maxLoadFactorInverse)
4296+
maxLoadFactorInverse: _hashContainerDefaultMaxLoadFactorInverse)
43044297

43054298
let (_, capacityChanged) = ensureUniqueNativeBuffer(minCapacity)
43064299

0 commit comments

Comments
 (0)