Skip to content

Commit

Permalink
dead code elimination
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 479966581
  • Loading branch information
ericsalo authored and copybara-github committed Oct 10, 2022
1 parent 50d36a6 commit 1a3803c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions upb/mini_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,6 @@ upb_MiniTable* upb_MiniTable_BuildMapEntry(upb_FieldType key_type,
if (!ret || !fields) return NULL;

upb_MiniTable_Sub* subs = NULL;
uint64_t value_modifiers = 0;
if (value_is_proto3_enum) {
UPB_ASSERT(value_type == kUpb_FieldType_Enum);
// No sub needed.
Expand All @@ -1064,9 +1063,6 @@ upb_MiniTable* upb_MiniTable_BuildMapEntry(upb_FieldType key_type,
value_type == kUpb_FieldType_Enum) {
subs = upb_Arena_Malloc(arena, sizeof(*subs));
if (!subs) return NULL;
if (value_type == kUpb_FieldType_Enum) {
value_modifiers |= kUpb_FieldModifier_IsClosedEnum;
}
}

size_t field_size =
Expand Down
3 changes: 0 additions & 3 deletions upb/msg_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,6 @@ const upb_Message_Extension* _upb_Message_Getext(
void _upb_Message_Clearext(upb_Message* msg,
const upb_MiniTable_Extension* ext);

void _upb_Message_Clearext(upb_Message* msg,
const upb_MiniTable_Extension* ext);

/** Hasbit access *************************************************************/

UPB_INLINE bool _upb_hasbit(const upb_Message* msg, size_t idx) {
Expand Down

0 comments on commit 1a3803c

Please sign in to comment.