Skip to content

Commit

Permalink
Remove reference to handle factory
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 607033244
  • Loading branch information
jcking authored and copybara-github committed Feb 14, 2024
1 parent 8eafae3 commit 21e3cec
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions common/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ class PoolingMemoryManagerVirtualDispatcher;
template <typename T>
class Allocator;

namespace base_internal {
template <typename T>
struct HandleFactory;
} // namespace base_internal

// `Shared` points to an object allocated in memory which is managed by a
// `MemoryManager`. The pointed to object is valid so long as the managing
// `MemoryManager` is alive and one or more valid `Shared` exist pointing to the
Expand Down Expand Up @@ -575,8 +570,6 @@ class PoolingMemoryManager {
friend struct NativeTypeTraits<PoolingMemoryManager>;
template <typename T>
friend class Allocator;
template <typename T>
friend struct base_internal::HandleFactory;

template <typename T>
static void DefaultDestructor(void* ptr) {
Expand Down Expand Up @@ -666,8 +659,6 @@ class PoolingMemoryManagerVirtualDispatcher final
friend struct CompositionTraits<MemoryManagerRef>;
template <typename T>
friend class Allocator;
template <typename T>
friend struct base_internal::HandleFactory;

explicit PoolingMemoryManagerVirtualDispatcher(
absl::Nonnull<const PoolingMemoryManagerVirtualTable*> vtable,
Expand Down Expand Up @@ -1100,8 +1091,6 @@ class ABSL_ATTRIBUTE_TRIVIAL_ABI MemoryManagerRef final {
friend struct CompositionTraits<MemoryManagerRef>;
template <typename T>
friend class Allocator;
template <typename T>
friend struct base_internal::HandleFactory;

explicit MemoryManagerRef(void* vpointer, void* pointer)
: vpointer_(vpointer), pointer_(pointer) {}
Expand Down

0 comments on commit 21e3cec

Please # to comment.