@@ -140,18 +140,6 @@ extension Dictionary where Key == NSAttributedString.Key, Value == Any {
140
140
try self . init ( container, attributeTable: S . attributeKeyTypes ( ) )
141
141
}
142
142
143
- // These includingOnly SPI initializers were provided originally when conversion boxed attributes outside of the given scope as an AnyObject
144
- // After rdar://80201634, these SPI initializers have the same behavior as the API initializers
145
- @_spi ( AttributedString)
146
- public init < S: AttributeScope > ( _ container: AttributeContainer , includingOnly scope: KeyPath < AttributeScopes , S . Type > ) throws {
147
- try self . init ( container, including: S . self)
148
- }
149
-
150
- @_spi ( AttributedString)
151
- public init < S: AttributeScope > ( _ container: AttributeContainer , includingOnly scope: S . Type ) throws {
152
- try self . init ( container, including: S . self)
153
- }
154
-
155
143
fileprivate init ( _ container: AttributeContainer , attributeTable: [ String : any AttributedStringKey . Type ] , options: _AttributeConversionOptions = [ ] ) throws {
156
144
self . init ( )
157
145
for key in container. storage. keys {
@@ -186,16 +174,6 @@ extension NSAttributedString {
186
174
try self . init ( attrStr, attributeTable: scope. attributeKeyTypes ( ) )
187
175
}
188
176
189
- @_spi ( AttributedString)
190
- public convenience init < S: AttributeScope > ( _ attrStr: AttributedString , includingOnly scope: KeyPath < AttributeScopes , S . Type > ) throws {
191
- try self . init ( attrStr, including: S . self)
192
- }
193
-
194
- @_spi ( AttributedString)
195
- public convenience init < S: AttributeScope > ( _ attrStr: AttributedString , includingOnly scope: S . Type ) throws {
196
- try self . init ( attrStr, including: scope)
197
- }
198
-
199
177
internal convenience init (
200
178
_ attrStr: AttributedString ,
201
179
attributeTable: [ String : any AttributedStringKey . Type ] ,
0 commit comments