From a9b6dba74b595361df3d9c934e479ccf83ad91a1 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 25 Jan 2022 17:58:14 +0200 Subject: [PATCH] Remove the unused get_allocation_size function --- source/backends/vulkan/memoryallocator.cpp | 5 ----- source/backends/vulkan/memoryallocator.h | 2 -- 2 files changed, 7 deletions(-) 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 *); }; -- 2.45.2