From: Mikko Rasa Date: Tue, 25 Jan 2022 15:58:14 +0000 (+0200) Subject: Remove the unused get_allocation_size function X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=a9b6dba74b595361df3d9c934e479ccf83ad91a1;p=libs%2Fgl.git Remove the unused get_allocation_size function --- diff --git a/source/backends/vulkan/memoryallocator.cpp b/source/backends/vulkan/memoryallocator.cpp index 6ef5d2bd..4289e28d 100644 --- a/source/backends/vulkan/memoryallocator.cpp +++ b/source/backends/vulkan/memoryallocator.cpp @@ -116,11 +116,6 @@ void MemoryAllocator::release(unsigned id) vk.FreeMemory(alloc.memory); } -size_t MemoryAllocator::get_allocation_size(unsigned id) const -{ - return get_allocation(id).size; -} - void *MemoryAllocator::map(unsigned id, size_t offset, size_t size) { Allocation &alloc = get_allocation(id); diff --git a/source/backends/vulkan/memoryallocator.h b/source/backends/vulkan/memoryallocator.h index f8d08c4f..4715bea8 100644 --- a/source/backends/vulkan/memoryallocator.h +++ b/source/backends/vulkan/memoryallocator.h @@ -48,8 +48,6 @@ public: unsigned allocate(VkImage, MemoryType); void release(unsigned); - std::size_t get_allocation_size(unsigned) const; - void *map(unsigned, std::size_t, std::size_t); void unmap(void *); };