diff options
author | Josh Haberman <jhaberman@gmail.com> | 2018-08-21 14:47:50 -0700 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2018-08-21 14:47:50 -0700 |
commit | c0a50de92300080a1cf11bf4ff0ec3b2d6240c10 (patch) | |
tree | 84736c4563940dd81aa5d2269e3ba638b5355edb /upb/bindings/googlepb/proto1.int.h | |
parent | e3eae33fb5840dbec3c2bc9109fa164f6066baa8 (diff) |
Removed a bunch of obsolete code.
A lot of this code was experimental or temporarily
useful, but is no longer needed.
Diffstat (limited to 'upb/bindings/googlepb/proto1.int.h')
-rw-r--r-- | upb/bindings/googlepb/proto1.int.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/upb/bindings/googlepb/proto1.int.h b/upb/bindings/googlepb/proto1.int.h deleted file mode 100644 index d5c9cad..0000000 --- a/upb/bindings/googlepb/proto1.int.h +++ /dev/null @@ -1,39 +0,0 @@ -// Support for registering field handlers that can write into a legacy proto1 -// message. This functionality is only needed inside Google. -// -// This is an internal-only interface. - -#ifndef UPB_GOOGLE_PROTO1_H_ -#define UPB_GOOGLE_PROTO1_H_ - -namespace proto2 { -class FieldDescriptor; -class Message; -} - -namespace upb { -class FieldDef; -class Handlers; -} - -namespace upb { -namespace googlepb { - -// Sets field handlers in the given Handlers object for writing to a single -// field (as described by "proto2_f" and "upb_f") into a message constructed -// by the same factory as "prototype." Returns true if this was successful -// (this will fail if "prototype" is not a proto1 message, or if we can't -// handle it for some reason). -bool TrySetProto1WriteHandlers(const proto2::FieldDescriptor* proto2_f, - const proto2::Message& prototype, - const upb::FieldDef* upb_f, upb::Handlers* h); - -// Returns a prototype for the given this (possibly-weak) field. Returns NULL -// if this is not a submessage field of any kind (weak or no). -const proto2::Message* GetProto1FieldPrototype( - const proto2::Message& m, const proto2::FieldDescriptor* f); - -} // namespace googlepb -} // namespace upb - -#endif // UPB_GOOGLE_PROTO1_H_ |