cogl/atlas: Remove unused private function
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3910>
This commit is contained in:
parent
5fde5abd3e
commit
a107cae976
2 changed files with 0 additions and 33 deletions
|
@ -59,10 +59,3 @@ _cogl_atlas_copy_rectangle (CoglAtlas *atlas,
|
|||
int width,
|
||||
int height,
|
||||
CoglPixelFormat format);
|
||||
|
||||
|
||||
void
|
||||
_cogl_atlas_remove_reorganize_callback (CoglAtlas *atlas,
|
||||
GHookFunc pre_callback,
|
||||
GHookFunc post_callback,
|
||||
void *user_data);
|
||||
|
|
|
@ -669,29 +669,3 @@ cogl_atlas_add_reorganize_callback (CoglAtlas *atlas,
|
|||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue