summaryrefslogtreecommitdiff
path: root/chromium/third_party/protobuf/src/google/protobuf/text_format.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/protobuf/src/google/protobuf/text_format.h')
-rw-r--r--chromium/third_party/protobuf/src/google/protobuf/text_format.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/chromium/third_party/protobuf/src/google/protobuf/text_format.h b/chromium/third_party/protobuf/src/google/protobuf/text_format.h
index 01f3ffb0865..0974139708a 100644
--- a/chromium/third_party/protobuf/src/google/protobuf/text_format.h
+++ b/chromium/third_party/protobuf/src/google/protobuf/text_format.h
@@ -339,30 +339,9 @@ class LIBPROTOBUF_EXPORT TextFormat {
};
private:
- // Hack: ParseInfoTree declares TextFormat as a friend which should extend
- // the friendship to TextFormat::Parser::ParserImpl, but unfortunately some
- // old compilers (e.g. GCC 3.4.6) don't implement this correctly. We provide
- // helpers for ParserImpl to call methods of ParseInfoTree.
- static inline void RecordLocation(ParseInfoTree* info_tree,
- const FieldDescriptor* field,
- ParseLocation location);
- static inline ParseInfoTree* CreateNested(ParseInfoTree* info_tree,
- const FieldDescriptor* field);
-
GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TextFormat);
};
-inline void TextFormat::RecordLocation(ParseInfoTree* info_tree,
- const FieldDescriptor* field,
- ParseLocation location) {
- info_tree->RecordLocation(field, location);
-}
-
-inline TextFormat::ParseInfoTree* TextFormat::CreateNested(
- ParseInfoTree* info_tree, const FieldDescriptor* field) {
- return info_tree->CreateNested(field);
-}
-
} // namespace protobuf
} // namespace google