From 4a84207d7c196c0695d05d6d8187688050ac6bc3 Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Mon, 25 Mar 2019 23:42:04 +0100 Subject: [PATCH] Remove unused variables from VmaBlockVector::ApplyDefragmentationMovesGpu Fixes #58 --- src/vk_mem_alloc.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index 92c4c89..d0f3e42 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -12285,9 +12285,6 @@ void VmaBlockVector::ApplyDefragmentationMovesGpu( // Go over all moves. Post data transfer commands to command buffer. if(pDefragCtx->res == VK_SUCCESS) { - const VkDeviceSize nonCoherentAtomSize = m_hAllocator->m_PhysicalDeviceProperties.limits.nonCoherentAtomSize; - VkMappedMemoryRange memRange = { VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE }; - for(size_t moveIndex = 0; moveIndex < moveCount; ++moveIndex) { const VmaDefragmentationMove& move = moves[moveIndex];