]> git.tdb.fi Git - libs/gl.git/commitdiff
Remove the unused get_allocation_size function
authorMikko Rasa <tdb@tdb.fi>
Tue, 25 Jan 2022 15:58:14 +0000 (17:58 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 25 Jan 2022 15:58:14 +0000 (17:58 +0200)
source/backends/vulkan/memoryallocator.cpp
source/backends/vulkan/memoryallocator.h

index 6ef5d2bd7a6b8714fb545997819abb11e1995fa9..4289e28d6a64a20b39d6dc87ba161ad6749ba4bc 100644 (file)
@@ -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);
index f8d08c4ff5e3a202a7c644b9ce4aef6946da9d4a..4715bea8311a2f88db74919f24af71005b72a18c 100644 (file)
@@ -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 *);
 };