Automated rollback of commit 47b5f81c7f.

PiperOrigin-RevId: 511834418
pull/11984/head
Protobuf Team Bot 2 years ago committed by Copybara-Service
parent d40aadf823
commit cfea039918
  1. 4
      src/google/protobuf/port_def.inc
  2. 4
      src/google/protobuf/repeated_ptr_field.h

@ -213,10 +213,6 @@ static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and
// Owner: shaod@, gberg@
#define PROTOBUF_FUTURE_DESCRIPTOR_EXTENSION_DECL 1
// Used to remove `RepeatedPtrField::GetArena() const`.
// Owner: ezb@
#define PROTOBUF_FUTURE_REMOVE_CONST_REPEATEDFIELD_GETARENA_API 1
#endif
#ifdef PROTOBUF_VERSION

@ -1185,10 +1185,8 @@ class RepeatedPtrField final : private internal::RepeatedPtrFieldBase {
// Gets the arena on which this RepeatedPtrField stores its elements.
inline Arena* GetArena();
#ifndef PROTOBUF_FUTURE_REMOVE_CONST_REPEATEDFIELD_GETARENA_API
ABSL_DEPRECATED("This will be removed in a future release")
inline Arena* GetArena() const;
#endif // !PROTOBUF_FUTURE_REMOVE_CONST_REPEATEDFIELD_GETARENA_API
// For internal use only.
//
@ -1554,12 +1552,10 @@ inline Arena* RepeatedPtrField<Element>::GetArena() {
return RepeatedPtrFieldBase::GetArena();
}
#ifndef PROTOBUF_FUTURE_REMOVE_CONST_REPEATEDFIELD_GETARENA_API
template <typename Element>
inline Arena* RepeatedPtrField<Element>::GetArena() const {
return RepeatedPtrFieldBase::GetArena();
}
#endif // !PROTOBUF_FUTURE_REMOVE_CONST_REPEATEDFIELD_GETARENA_API
template <typename Element>
inline Arena* RepeatedPtrField<Element>::GetOwningArena() const {

Loading…
Cancel
Save