1
0
Fork 0

cogl/atlas: Remove unused private function

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3910>
This commit is contained in:
Bilal Elmoussaoui 2024-07-26 22:53:47 +02:00 committed by Marge Bot
parent 5fde5abd3e
commit a107cae976
2 changed files with 0 additions and 33 deletions

View file

@ -59,10 +59,3 @@ _cogl_atlas_copy_rectangle (CoglAtlas *atlas,
int width, int width,
int height, int height,
CoglPixelFormat format); CoglPixelFormat format);
void
_cogl_atlas_remove_reorganize_callback (CoglAtlas *atlas,
GHookFunc pre_callback,
GHookFunc post_callback,
void *user_data);

View file

@ -669,29 +669,3 @@ cogl_atlas_add_reorganize_callback (CoglAtlas *atlas,
g_hook_prepend (&atlas->post_reorganize_callbacks, hook); g_hook_prepend (&atlas->post_reorganize_callbacks, hook);
} }
} }
void
_cogl_atlas_remove_reorganize_callback (CoglAtlas *atlas,
GHookFunc pre_callback,
GHookFunc post_callback,
void *user_data)
{
if (pre_callback)
{
GHook *hook = g_hook_find_func_data (&atlas->pre_reorganize_callbacks,
FALSE,
pre_callback,
user_data);
if (hook)
g_hook_destroy_link (&atlas->pre_reorganize_callbacks, hook);
}
if (post_callback)
{
GHook *hook = g_hook_find_func_data (&atlas->post_reorganize_callbacks,
FALSE,
post_callback,
user_data);
if (hook)
g_hook_destroy_link (&atlas->post_reorganize_callbacks, hook);
}
}