Skip to content

Commit edc7340

Browse files
cburrowsthomasvl
authored andcommitted
Remove Internal.emptyData, not generated since #1028
1 parent 6b6b977 commit edc7340

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Sources/SwiftProtobuf/Internal.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ import Foundation
2020
/// implementations. NOT INTENDED TO BE CALLED BY CLIENTS.
2121
public enum Internal {
2222

23-
/// A singleton instance of an empty data that is used by the generated code
24-
/// for default values. This is a performance enhancement to work around the
25-
/// fact that the `Data` type in Swift involves a new heap allocation every
26-
/// time an empty instance is initialized, instead of sharing a common empty
27-
/// backing storage.
28-
public static let emptyData = Data()
29-
3023
/// Helper to loop over a list of Messages to see if they are all
3124
/// initialized (see Message.isInitialized for what that means).
3225
public static func areAllInitialized(_ listOfMessages: [Message]) -> Bool {

0 commit comments

Comments
 (0)