|
|
|
@ -1175,11 +1175,6 @@ 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.
|
|
|
|
|
//
|
|
|
|
|
// This is public due to it being called by generated code.
|
|
|
|
@ -1512,13 +1507,6 @@ 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 size_t RepeatedPtrField<Element>::SpaceUsedExcludingSelfLong() const { |
|
|
|
|
// `google::protobuf::Message` has a virtual method `SpaceUsedLong`, hence we can
|
|
|
|
|