dead code elimination

PiperOrigin-RevId: 479966581
pull/13171/head
Eric Salo 2 years ago committed by Copybara-Service
parent 50d36a62b0
commit 1a3803ce8b
  1. 4
      upb/mini_table.c
  2. 3
      upb/msg_internal.h

@ -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.
@ -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 =

@ -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) {

Loading…
Cancel
Save