mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "[stdlib] Set automaticallyNotifiesObserversForKey to false"
Adding this complexity does not offer any significant improvements. This reverts commit r24467. Git commit: c17e2294e4e100bfc44efe792523c314a38cec47. Swift SVN r24481
This commit is contained in:
@@ -2125,15 +2125,6 @@ internal struct _BridgedNative${Self}Storage {
|
||||
_sanityCheckFailure("'countByEnumeratingWithState' should be overridden")
|
||||
}
|
||||
|
||||
// A dictionary or set's storage can not be mutated. If it is not uniquely
|
||||
// referenced then a copy is made on mutation.
|
||||
@objc class func automaticallyNotifiesObserversForKey(
|
||||
key: AnyObject) -> UInt8 {
|
||||
// At this point, we do not have Bool available to us.
|
||||
// UInt8 and BOOL have the same ABI on all our platforms (2015).
|
||||
return 0
|
||||
}
|
||||
|
||||
%if Self == 'Set':
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user