diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/d3d12/gstd3d12commandallocatorpool.cpp b/subprojects/gst-plugins-bad/gst-libs/gst/d3d12/gstd3d12commandallocatorpool.cpp index 01db925724..0ceae309a4 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/d3d12/gstd3d12commandallocatorpool.cpp +++ b/subprojects/gst-plugins-bad/gst-libs/gst/d3d12/gstd3d12commandallocatorpool.cpp @@ -34,17 +34,9 @@ using namespace Microsoft::WRL; struct _GstD3D12CommandAllocator : public GstMiniObject { - ~_GstD3D12CommandAllocator () - { - if (notify) - notify (user_data); - } - GstD3D12CommandAllocatorPool *pool = nullptr; D3D12_COMMAND_LIST_TYPE type; ComPtr < ID3D12CommandAllocator > ca; - gpointer user_data = nullptr; - GDestroyNotify notify = nullptr; }; struct _GstD3D12CommandAllocatorPoolPrivate @@ -294,44 +286,3 @@ gst_d3d12_command_allocator_get_handle (GstD3D12CommandAllocator * cmd) return cmd->ca.Get (); } - -/** - * gst_d3d12_command_allocator_set_user_data: - * @cmd: a #GstD3D12CommandAllocator - * @user_data: private data - * @notify: a #GDestroyNotify - * - * Sets @user_data on the @cmd - * - * Since: 1.26 - */ -void -gst_d3d12_command_allocator_set_user_data (GstD3D12CommandAllocator * cmd, - gpointer user_data, GDestroyNotify notify) -{ - g_return_if_fail (cmd); - - if (cmd->notify) - cmd->notify (cmd->user_data); - - cmd->user_data = user_data; - cmd->notify = notify; -} - -/** - * gst_d3d12_command_allocator_get_user_data: - * @cmd: a #GstD3D12CommandAllocator - * - * Gets private data configured via gst_d3d12_command_allocator_set_user_data() - * - * Returns: (transfer none): previously set user_data - * - * Since: 1.26 - */ -gpointer -gst_d3d12_command_allocator_get_user_data (GstD3D12CommandAllocator * cmd) -{ - g_return_val_if_fail (cmd, nullptr); - - return cmd->user_data; -} diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/d3d12/gstd3d12commandallocatorpool.h b/subprojects/gst-plugins-bad/gst-libs/gst/d3d12/gstd3d12commandallocatorpool.h index 2031626418..d12f1446d0 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/d3d12/gstd3d12commandallocatorpool.h +++ b/subprojects/gst-plugins-bad/gst-libs/gst/d3d12/gstd3d12commandallocatorpool.h @@ -90,13 +90,5 @@ void gst_clear_d3d12_command_allocator (GstD3D12Comman GST_D3D12_API ID3D12CommandAllocator * gst_d3d12_command_allocator_get_handle (GstD3D12CommandAllocator * cmd); -GST_D3D12_API -void gst_d3d12_command_allocator_set_user_data (GstD3D12CommandAllocator * cmd, - gpointer user_data, - GDestroyNotify notify); - -GST_D3D12_API -gpointer gst_d3d12_command_allocator_get_user_data (GstD3D12CommandAllocator * cmd); - G_END_DECLS