@@ -256,7 +256,6 @@ final internal class __StringStorage
256
256
257
257
@inline ( __always)
258
258
fileprivate var _capacityAndFlags : _CapacityAndFlags {
259
- // TODO: ...
260
259
_CapacityAndFlags ( realCapacity: _realCapacity, flags: _capacityFlags)
261
260
}
262
261
#else
@@ -289,7 +288,6 @@ final internal class __StringStorage
289
288
290
289
// Creation
291
290
extension __StringStorage {
292
- // TODO: Test effect of asking for exactly 62, 63, 64, 65 code units...
293
291
@_effects ( releasenone)
294
292
private static func create(
295
293
codeUnitCapacity capacity: Int , countAndFlags: _CountAndFlags
@@ -332,17 +330,6 @@ extension __StringStorage {
332
330
return storage
333
331
}
334
332
335
- // DO NOT PUSH: For stats gathering only...
336
- internal static func create(
337
- count: Int , codeUnitCapacity capacity: Int
338
- ) -> __StringStorage {
339
- __StringStorage. create (
340
- codeUnitCapacity: capacity,
341
- countAndFlags: _CountAndFlags ( mortalCount: count, isASCII: false ) )
342
- // NOTE: content is garbage and not necessarily validy endcoded. Please
343
- // delete this entry point...
344
- }
345
-
346
333
// The caller is expected to check UTF8 validity and ASCII-ness and update
347
334
// the resulting StringStorage accordingly
348
335
internal static func create(
@@ -447,7 +434,6 @@ extension __StringStorage {
447
434
448
435
// @opaque
449
436
fileprivate var _breadcrumbsAddress : UnsafeMutablePointer < _StringBreadcrumbs ? > {
450
- // TODO: better message
451
437
precondition (
452
438
hasBreadcrumbs, " Internal error: string breadcrumbs not present " )
453
439
return UnsafeMutablePointer ( _realCapacityEnd)
0 commit comments