diff --git a/src/google/protobuf/json/internal/parser.cc b/src/google/protobuf/json/internal/parser.cc index fbf492afa715..ae4954d75e75 100644 --- a/src/google/protobuf/json/internal/parser.cc +++ b/src/google/protobuf/json/internal/parser.cc @@ -699,13 +699,6 @@ absl::Status ParseMap(JsonLexer& lex, Field field, Msg& msg) { } break; } - case FieldDescriptor::TYPE_ENUM: { - MaybeOwnedString key_str = key.value; - auto e = ParseEnumFromStr(lex, key_str, field); - RETURN_IF_ERROR(e.status()); - Traits::SetEnum(key_field, entry, e->value_or(0)); - break; - } case FieldDescriptor::TYPE_STRING: { Traits::SetString(key_field, entry, std::move(key.value.ToString()));