Skip to content

Commit

Permalink
hpb: Remove Parse upb options
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 706801167
  • Loading branch information
honglooker authored and copybara-github committed Dec 16, 2024
1 parent 758b1fb commit ff77929
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions hpb/hpb.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ absl::StatusOr<T> Parse(absl::string_view bytes) {

template <typename T>
absl::StatusOr<T> Parse(absl::string_view bytes,
const ::hpb::ExtensionRegistry& extension_registry,
int options = 0) {
const ::hpb::ExtensionRegistry& extension_registry) {
T message;
auto* arena = hpb::interop::upb::GetArena(&message);
upb_DecodeStatus status =
Expand Down
2 changes: 1 addition & 1 deletion hpb_generator/gen_messages.cc
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ void WriteModelPublicDeclaration(
friend absl::StatusOr<$2>(::hpb::Parse<$2>(absl::string_view bytes));
friend absl::StatusOr<$2>(::hpb::Parse<$2>(
absl::string_view bytes,
const ::hpb::ExtensionRegistry& extension_registry, int options));
const ::hpb::ExtensionRegistry& extension_registry));
friend upb_Arena* hpb::interop::upb::GetArena<$0>($0* message);
friend upb_Arena* hpb::interop::upb::GetArena<$0>(::hpb::Ptr<$0> message);
friend $0(hpb::interop::upb::MoveMessage<$0>(upb_Message* msg,
Expand Down

0 comments on commit ff77929

Please sign in to comment.