Skip to content

Commit

Permalink
Remove Internal.emptyData, not generated since #1028
Browse files Browse the repository at this point in the history
  • Loading branch information
cburrows authored and thomasvl committed Nov 30, 2023
1 parent 6b6b977 commit edc7340
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Sources/SwiftProtobuf/Internal.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@ import Foundation
/// implementations. NOT INTENDED TO BE CALLED BY CLIENTS.
public enum Internal {

/// A singleton instance of an empty data that is used by the generated code
/// for default values. This is a performance enhancement to work around the
/// fact that the `Data` type in Swift involves a new heap allocation every
/// time an empty instance is initialized, instead of sharing a common empty
/// backing storage.
public static let emptyData = Data()

/// Helper to loop over a list of Messages to see if they are all
/// initialized (see Message.isInitialized for what that means).
public static func areAllInitialized(_ listOfMessages: [Message]) -> Bool {
Expand Down

0 comments on commit edc7340

Please sign in to comment.