Skip to content

Commit 89f0a12

Browse files
committed
[gardening] Remove dead comments and code
1 parent d8f25be commit 89f0a12

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

stdlib/public/core/StringStorage.swift

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,6 @@ final internal class __StringStorage
256256

257257
@inline(__always)
258258
fileprivate var _capacityAndFlags: _CapacityAndFlags {
259-
// TODO: ...
260259
_CapacityAndFlags(realCapacity: _realCapacity, flags: _capacityFlags)
261260
}
262261
#else
@@ -289,7 +288,6 @@ final internal class __StringStorage
289288

290289
// Creation
291290
extension __StringStorage {
292-
// TODO: Test effect of asking for exactly 62, 63, 64, 65 code units...
293291
@_effects(releasenone)
294292
private static func create(
295293
codeUnitCapacity capacity: Int, countAndFlags: _CountAndFlags
@@ -332,17 +330,6 @@ extension __StringStorage {
332330
return storage
333331
}
334332

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-
346333
// The caller is expected to check UTF8 validity and ASCII-ness and update
347334
// the resulting StringStorage accordingly
348335
internal static func create(
@@ -447,7 +434,6 @@ extension __StringStorage {
447434

448435
// @opaque
449436
fileprivate var _breadcrumbsAddress: UnsafeMutablePointer<_StringBreadcrumbs?> {
450-
// TODO: better message
451437
precondition(
452438
hasBreadcrumbs, "Internal error: string breadcrumbs not present")
453439
return UnsafeMutablePointer(_realCapacityEnd)

0 commit comments

Comments
 (0)