@@ -2482,9 +2482,7 @@ internal struct _BitMap {
2482
2482
}
2483
2483
2484
2484
internal var numberOfWords: Int {
2485
- get {
2486
- return _BitMap.wordsFor(bitCount)
2487
- }
2485
+ return _BitMap.wordsFor(bitCount)
2488
2486
}
2489
2487
2490
2488
internal func initializeToZero() {
@@ -2573,9 +2571,7 @@ final internal class _Native${Self}StorageImpl<${TypeParameters}> :
2573
2571
%end
2574
2572
2575
2573
internal var buffer: BufferPointer {
2576
- get {
2577
- return BufferPointer(self)
2578
- }
2574
+ return BufferPointer(self)
2579
2575
}
2580
2576
2581
2577
// All underscored functions are unsafe and need a _fixLifetime in the caller.
@@ -2590,9 +2586,7 @@ final internal class _Native${Self}StorageImpl<${TypeParameters}> :
2590
2586
2591
2587
@_versioned
2592
2588
internal var _capacity: Int {
2593
- get {
2594
- return _body.capacity
2595
- }
2589
+ return _body.capacity
2596
2590
}
2597
2591
2598
2592
@_versioned
@@ -2606,9 +2600,7 @@ final internal class _Native${Self}StorageImpl<${TypeParameters}> :
2606
2600
}
2607
2601
2608
2602
internal var _maxLoadFactorInverse : Double {
2609
- get {
2610
- return _body.maxLoadFactorInverse
2611
- }
2603
+ return _body.maxLoadFactorInverse
2612
2604
}
2613
2605
2614
2606
internal
@@ -2654,7 +2646,7 @@ final internal class _Native${Self}StorageImpl<${TypeParameters}> :
2654
2646
let requiredCapacity =
2655
2647
bytesForBitMap(capacity: capacity) + bytesForKeys(capacity: capacity)
2656
2648
%if Self == 'Dictionary':
2657
- + bytesForValues(capacity: capacity)
2649
+ + bytesForValues(capacity: capacity)
2658
2650
%end
2659
2651
2660
2652
let r = super.create(minimumCapacity: requiredCapacity) { _ in
@@ -2729,8 +2721,8 @@ struct _Native${Self}Storage<${TypeParametersDecl}> :
2729
2721
internal init(capacity: Int) {
2730
2722
buffer = StorageImpl.create(capacity: capacity)
2731
2723
initializedEntries = _BitMap(
2732
- storage: buffer._initializedHashtableEntriesBitMapStorage,
2733
- bitCount: capacity)
2724
+ storage: buffer._initializedHashtableEntriesBitMapStorage,
2725
+ bitCount: capacity)
2734
2726
keys = buffer._keys
2735
2727
%if Self == 'Dictionary':
2736
2728
values = buffer._values
@@ -2753,11 +2745,9 @@ struct _Native${Self}Storage<${TypeParametersDecl}> :
2753
2745
@_transparent
2754
2746
public // @testable
2755
2747
var capacity: Int {
2756
- get {
2757
- let result = buffer._capacity
2758
- _fixLifetime(buffer)
2759
- return result
2760
- }
2748
+ let result = buffer._capacity
2749
+ _fixLifetime(buffer)
2750
+ return result
2761
2751
}
2762
2752
2763
2753
@_versioned
@@ -2776,11 +2766,9 @@ struct _Native${Self}Storage<${TypeParametersDecl}> :
2776
2766
2777
2767
@_transparent
2778
2768
internal var maxLoadFactorInverse: Double {
2779
- get {
2780
- let result = buffer._maxLoadFactorInverse
2781
- _fixLifetime(buffer)
2782
- return result
2783
- }
2769
+ let result = buffer._maxLoadFactorInverse
2770
+ _fixLifetime(buffer)
2771
+ return result
2784
2772
}
2785
2773
2786
2774
@_versioned
@@ -3144,7 +3132,6 @@ internal struct _BridgedNative${Self}Storage {
3144
3132
internal let values: UnsafeMutablePointer<AnyObject>
3145
3133
%end
3146
3134
3147
-
3148
3135
internal init(buffer: StorageImpl) {
3149
3136
self.buffer = buffer
3150
3137
initializedEntries = _BitMap(
@@ -3159,11 +3146,9 @@ internal struct _BridgedNative${Self}Storage {
3159
3146
3160
3147
@_transparent
3161
3148
internal var capacity: Int {
3162
- get {
3163
- let result = buffer._capacity
3164
- _fixLifetime(buffer)
3165
- return result
3166
- }
3149
+ let result = buffer._capacity
3150
+ _fixLifetime(buffer)
3151
+ return result
3167
3152
}
3168
3153
3169
3154
@_versioned
0 commit comments