Minor cleanup: IWYU, remove unused type.

PiperOrigin-RevId: 608645662
pull/15845/head
Protobuf Team Bot 9 months ago committed by Copybara-Service
parent a3f5af066f
commit d9f37f7757
  1. 15
      src/google/protobuf/arena.h

@ -13,7 +13,7 @@
#include <cstddef>
#include <cstdint>
#include <limits>
#include <new>
#include <new> // IWYU pragma: keep for operator new().
#include <string>
#include <type_traits>
#include <utility>
@ -25,8 +25,6 @@
namespace std {
using type_info = ::type_info;
}
#else
#include <typeinfo>
#endif
#include "absl/base/attributes.h"
@ -81,17 +79,6 @@ class TcParser; // defined in generated_message_tctable_impl.h
template <typename Type>
class GenericTypeHandler; // defined in repeated_field.h
template <bool destructor_skippable, typename T>
struct ObjectDestructor {
constexpr static void (*destructor)(void*) =
&internal::cleanup::arena_destruct_object<T>;
};
template <typename T>
struct ObjectDestructor<true, T> {
constexpr static void (*destructor)(void*) = nullptr;
};
template <typename T>
void arena_delete_object(void* object) {
delete reinterpret_cast<T*>(object);

Loading…
Cancel
Save