aboutsummaryrefslogtreecommitdiff
path: root/objectivec/GPBDescriptor_PackagePrivate.h
diff options
context:
space:
mode:
authorThomas Van Lenten <thomasvl@google.com>2017-06-06 09:10:27 -0400
committerThomas Van Lenten <thomasvl@google.com>2017-06-06 10:44:14 -0400
commit1d0988b8efcb9eae937eb8438f6dd6b1ef66b6df (patch)
treec69125a62252aafd67704bfa3a9b80ba23ad5469 /objectivec/GPBDescriptor_PackagePrivate.h
parent516a81a4244d11f0fa6c40f87386a7bc35c37c6a (diff)
downloadprotobuf-1d0988b8efcb9eae937eb8438f6dd6b1ef66b6df.tar.gz
protobuf-1d0988b8efcb9eae937eb8438f6dd6b1ef66b6df.tar.bz2
protobuf-1d0988b8efcb9eae937eb8438f6dd6b1ef66b6df.zip
ObjC: Preserve unknown fields in proto3 syntax files.
As announced: https://groups.google.com/forum/#!topic/protobuf/VX5qEmTW3y0 The ObjC side of https://github.com/google/protobuf/issues/272
Diffstat (limited to 'objectivec/GPBDescriptor_PackagePrivate.h')
-rw-r--r--objectivec/GPBDescriptor_PackagePrivate.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/objectivec/GPBDescriptor_PackagePrivate.h b/objectivec/GPBDescriptor_PackagePrivate.h
index 9173e7a2..452b3f8e 100644
--- a/objectivec/GPBDescriptor_PackagePrivate.h
+++ b/objectivec/GPBDescriptor_PackagePrivate.h
@@ -286,10 +286,6 @@ uint32_t GPBFieldTag(GPBFieldDescriptor *self);
// would be the wire type for packed.
uint32_t GPBFieldAlternateTag(GPBFieldDescriptor *self);
-GPB_INLINE BOOL GPBPreserveUnknownFields(GPBFileSyntax syntax) {
- return syntax != GPBFileSyntaxProto3;
-}
-
GPB_INLINE BOOL GPBHasPreservingUnknownEnumSemantics(GPBFileSyntax syntax) {
return syntax == GPBFileSyntaxProto3;
}