Commit 3d1b5d72 authored by Hao Nguyen's avatar Hao Nguyen

Move CreateUnknownEnumValues to anonymous namespace

parent 34af3562
...@@ -1021,6 +1021,10 @@ bool IsIndexInHasBitSet(const uint32* has_bit_set, ...@@ -1021,6 +1021,10 @@ bool IsIndexInHasBitSet(const uint32* has_bit_set,
return ((has_bit_set[has_bit_index / 32] >> (has_bit_index % 32)) & return ((has_bit_set[has_bit_index / 32] >> (has_bit_index % 32)) &
static_cast<uint32>(1)) != 0; static_cast<uint32>(1)) != 0;
} }
bool CreateUnknownEnumValues(const FileDescriptor* file) {
return file->syntax() == FileDescriptor::SYNTAX_PROTO3;
}
} // namespace } // namespace
void Reflection::ListFields(const Message& message, void Reflection::ListFields(const Message& message,
...@@ -1288,10 +1292,6 @@ void Reflection::AddString(Message* message, const FieldDescriptor* field, ...@@ -1288,10 +1292,6 @@ void Reflection::AddString(Message* message, const FieldDescriptor* field,
// ------------------------------------------------------------------- // -------------------------------------------------------------------
bool CreateUnknownEnumValues(const FileDescriptor* file) {
return file->syntax() == FileDescriptor::SYNTAX_PROTO3;
}
const EnumValueDescriptor* Reflection::GetEnum( const EnumValueDescriptor* Reflection::GetEnum(
const Message& message, const FieldDescriptor* field) const { const Message& message, const FieldDescriptor* field) const {
// Usage checked by GetEnumValue. // Usage checked by GetEnumValue.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment