Skip to content

Commit

Permalink
[ObjC] Remove GPBDataType_Count, was internal to the runtime
Browse files Browse the repository at this point in the history
and never really used.

PiperOrigin-RevId: 718078561
  • Loading branch information
thomasvl authored and copybara-github committed Jan 21, 2025
1 parent b6f3481 commit 66186e3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions objectivec/GPBRuntimeTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
2 changes: 1 addition & 1 deletion objectivec/GPBWireFormat.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 66186e3

Please sign in to comment.