d3d12commandallocatorpool: Remove unused methods

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7108>
This commit is contained in:
Seungha Yang 2024-06-28 02:33:03 +09:00
parent c013e88295
commit c2531853fc
2 changed files with 0 additions and 57 deletions

View file

@ -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;
}

View file

@ -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