Skip to content

Commit

Permalink
Internal change.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 675707672
  • Loading branch information
protobuf-github-bot authored and copybara-github committed Sep 17, 2024
1 parent 7620bbf commit 7dfbf79
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/google/protobuf/wire_format.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1708,9 +1708,7 @@ size_t WireFormat::FieldDataOnlyByteSize(const FieldDescriptor* field,
HANDLE_FIXED_TYPE(BOOL, Bool)

HANDLE_TYPE(GROUP, Group, Message)
#ifndef PROTOBUF_ENABLE_FIX_CODE_SIZE_LAZY
HANDLE_TYPE(MESSAGE, Message, Message)
#else // !PROTOBUF_ENABLE_FIX_CODE_SIZE_LAZY

case FieldDescriptor::TYPE_MESSAGE: {
if (field->is_repeated()) {
for (size_t j = 0; j < count; ++j) {
Expand All @@ -1729,7 +1727,6 @@ size_t WireFormat::FieldDataOnlyByteSize(const FieldDescriptor* field,
message_reflection->GetMessage(message, field));
break;
}
#endif // PROTOBUF_ENABLE_FIX_CODE_SIZE_LAZY

#undef HANDLE_TYPE
#undef HANDLE_FIXED_TYPE
Expand Down

0 comments on commit 7dfbf79

Please sign in to comment.