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 <cstddef>
#include <cstdint> #include <cstdint>
#include <limits> #include <limits>
#include <new> #include <new> // IWYU pragma: keep for operator new().
#include <string> #include <string>
#include <type_traits> #include <type_traits>
#include <utility> #include <utility>
@ -25,8 +25,6 @@
namespace std { namespace std {
using type_info = ::type_info; using type_info = ::type_info;
} }
#else
#include <typeinfo>
#endif #endif
#include "absl/base/attributes.h" #include "absl/base/attributes.h"
@ -81,17 +79,6 @@ class TcParser; // defined in generated_message_tctable_impl.h
template <typename Type> template <typename Type>
class GenericTypeHandler; // defined in repeated_field.h 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> template <typename T>
void arena_delete_object(void* object) { void arena_delete_object(void* object) {
delete reinterpret_cast<T*>(object); delete reinterpret_cast<T*>(object);

Loading…
Cancel
Save