[ObjC] Remove GPBDataType_Count, was internal to the runtime

and never really used.

PiperOrigin-RevId: 718078561
pull/20059/head
Thomas Van Lenten 1 month ago committed by Copybara-Service
parent b6f3481696
commit 66186e30c9
  1. 9
      objectivec/GPBRuntimeTypes.h
  2. 2
      objectivec/GPBWireFormat.m

@ -102,15 +102,6 @@ typedef NS_ENUM(uint8_t, GPBDataType) {
GPBDataTypeEnum,
};
enum {
/**
* A count of the number of types in GPBDataType. Separated out from the
* GPBDataType enum to avoid warnings regarding not handling GPBDataType_Count
* in switch statements.
**/
GPBDataType_Count = GPBDataTypeEnum + 1
};
/** An extension range. */
typedef struct GPBExtensionRange {
/** Inclusive. */

@ -39,7 +39,7 @@ GPBWireFormat GPBWireFormatForType(GPBDataType type, BOOL isPacked) {
return GPBWireFormatLengthDelimited;
}
static const GPBWireFormat format[GPBDataType_Count] = {
static const GPBWireFormat format[] = {
GPBWireFormatVarint, // GPBDataTypeBool
GPBWireFormatFixed32, // GPBDataTypeFixed32
GPBWireFormatFixed32, // GPBDataTypeSFixed32

Loading…
Cancel
Save