mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/D3D12MemoryAllocator.git
synced 2024-11-21 11:50:03 +00:00
Do not define empty non-virtual destructors
This commit is contained in:
parent
f985d4ac8f
commit
074d7b446a
@ -1553,7 +1553,6 @@ public:
|
||||
|
||||
// allocationCallbacks externally owned, must outlive this object.
|
||||
List(const ALLOCATION_CALLBACKS& allocationCallbacks);
|
||||
~List();
|
||||
void Clear();
|
||||
|
||||
size_t GetCount() const { return m_Count; }
|
||||
@ -1776,13 +1775,6 @@ List<T>::List(const ALLOCATION_CALLBACKS& allocationCallbacks) :
|
||||
{
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
List<T>::~List()
|
||||
{
|
||||
// Intentionally not calling Clear, because that would be unnecessary
|
||||
// computations to return all items to m_ItemAllocator as free.
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void List<T>::Clear()
|
||||
{
|
||||
@ -6002,11 +5994,6 @@ Allocation::Allocation(AllocatorPimpl* allocator, UINT64 size, BOOL wasZeroIniti
|
||||
m_PackedData.SetWasZeroInitialized(wasZeroInitialized);
|
||||
}
|
||||
|
||||
Allocation::~Allocation()
|
||||
{
|
||||
// Nothing here, everything already done in Release.
|
||||
}
|
||||
|
||||
void Allocation::InitCommitted(CommittedAllocationList* list)
|
||||
{
|
||||
m_PackedData.SetType(TYPE_COMMITTED);
|
||||
@ -6311,7 +6298,6 @@ public:
|
||||
BlockMetadata_Generic m_Metadata;
|
||||
|
||||
VirtualBlockPimpl(const ALLOCATION_CALLBACKS& allocationCallbacks, UINT64 size);
|
||||
~VirtualBlockPimpl();
|
||||
};
|
||||
|
||||
VirtualBlockPimpl::VirtualBlockPimpl(const ALLOCATION_CALLBACKS& allocationCallbacks, UINT64 size) :
|
||||
@ -6323,10 +6309,6 @@ VirtualBlockPimpl::VirtualBlockPimpl(const ALLOCATION_CALLBACKS& allocationCallb
|
||||
m_Metadata.Init(m_Size);
|
||||
}
|
||||
|
||||
VirtualBlockPimpl::~VirtualBlockPimpl()
|
||||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Public class VirtualBlock implementation
|
||||
|
||||
|
@ -401,7 +401,6 @@ private:
|
||||
} m_PackedData;
|
||||
|
||||
Allocation(AllocatorPimpl* allocator, UINT64 size, BOOL wasZeroInitialized);
|
||||
~Allocation();
|
||||
void InitCommitted(CommittedAllocationList* list);
|
||||
void InitPlaced(UINT64 offset, UINT64 alignment, NormalBlock* block);
|
||||
void InitHeap(CommittedAllocationList* list, ID3D12Heap* heap);
|
||||
|
Loading…
Reference in New Issue
Block a user