From 62cbf3d78ae96e9562f0257ad2e841a692131051 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Mon, 12 Apr 2021 16:37:59 +0200 Subject: [PATCH] vkd3d: Remove unused unsafe_impl_from_ID3D12CommandAllocator. Signed-off-by: Philip Rebohle --- libs/vkd3d/command.c | 8 -------- libs/vkd3d/vkd3d_private.h | 1 - 2 files changed, 9 deletions(-) diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c index ecf23132..07149004 100644 --- a/libs/vkd3d/command.c +++ b/libs/vkd3d/command.c @@ -1638,14 +1638,6 @@ static CONST_VTBL struct ID3D12CommandAllocatorVtbl d3d12_command_allocator_vtbl d3d12_command_allocator_Reset, }; -struct d3d12_command_allocator *unsafe_impl_from_ID3D12CommandAllocator(ID3D12CommandAllocator *iface) -{ - if (!iface) - return NULL; - assert(iface->lpVtbl == &d3d12_command_allocator_vtbl); - return impl_from_ID3D12CommandAllocator(iface); -} - struct vkd3d_queue_family_info *d3d12_device_get_vkd3d_queue_family(struct d3d12_device *device, D3D12_COMMAND_LIST_TYPE type) { diff --git a/libs/vkd3d/vkd3d_private.h b/libs/vkd3d/vkd3d_private.h index 7a302dd3..ef67d7f5 100644 --- a/libs/vkd3d/vkd3d_private.h +++ b/libs/vkd3d/vkd3d_private.h @@ -1536,7 +1536,6 @@ HRESULT d3d12_command_allocator_create(struct d3d12_device *device, bool d3d12_command_allocator_allocate_query_from_type_index( struct d3d12_command_allocator *allocator, uint32_t type_index, VkQueryPool *query_pool, uint32_t *query_index); -struct d3d12_command_allocator *unsafe_impl_from_ID3D12CommandAllocator(ID3D12CommandAllocator *iface); enum vkd3d_pipeline_dirty_flag {