diff --git a/src/google/protobuf/repeated_ptr_field.h b/src/google/protobuf/repeated_ptr_field.h index 07b165b002..65adafe5ba 100644 --- a/src/google/protobuf/repeated_ptr_field.h +++ b/src/google/protobuf/repeated_ptr_field.h @@ -238,14 +238,6 @@ class PROTOBUF_EXPORT RepeatedPtrFieldBase { element_at(ExchangeCurrentSize(current_size_ + 1)) = result; } - template - void Delete(int index) { - ABSL_DCHECK_GE(index, 0); - ABSL_DCHECK_LT(index, current_size_); - using H = CommonHandler; - Delete(element_at(index), arena_); - } - // Must be called from destructor. // // Pre-condition: NeedsDestroy() returns true.