mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
[ObjC] Remove GPBDataType_Count, was internal to the runtime
and never really used. PiperOrigin-RevId: 718078561
This commit is contained in:
parent
b6f3481696
commit
66186e30c9
2 changed files with 1 additions and 10 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue