hpb: Parse - remove unread options arg

PiperOrigin-RevId: 704381979
pull/19497/head
Hong Shin 3 months ago committed by Copybara-Service
parent 4f98f33ed5
commit 75581bff86
  1. 2
      hpb/hpb.h
  2. 3
      hpb_generator/gen_messages.cc

@ -98,7 +98,7 @@ ABSL_MUST_USE_RESULT bool Parse(internal::PtrOrRaw<T> message,
}
template <typename T>
absl::StatusOr<T> Parse(absl::string_view bytes, int options = 0) {
absl::StatusOr<T> Parse(absl::string_view bytes) {
T message;
auto* arena = hpb::interop::upb::GetArena(&message);
upb_DecodeStatus status =

@ -271,8 +271,7 @@ void WriteModelPublicDeclaration(
friend struct ::hpb::internal::PrivateAccess;
friend Proxy;
friend CProxy;
friend absl::StatusOr<$2>(::hpb::Parse<$2>(absl::string_view bytes,
int options));
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));

Loading…
Cancel
Save