later: Remove old API

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2718>
This commit is contained in:
Jonas Ådahl 2022-09-08 00:06:18 +02:00 committed by Robert Mader
parent d7f5477103
commit d7f26136b4
2 changed files with 0 additions and 64 deletions

View File

@ -307,40 +307,6 @@ meta_laters_add (MetaLaters *laters,
return later->id;
}
/**
* meta_later_add:
* @when: enumeration value determining the phase at which to run the callback
* @func: callback to run later
* @data: data to pass to the callback
* @notify: function to call to destroy @data when it is no longer in use, or %NULL
*
* Sets up a callback to be called at some later time. @when determines the
* particular later occasion at which it is called. This is much like g_idle_add(),
* except that the functions interact properly with clutter event handling.
* If a "later" function is added from a clutter event handler, and is supposed
* to be run before the stage is redrawn, it will be run before that redraw
* of the stage, not the next one.
*
* Return value: an integer ID (guaranteed to be non-zero) that can be used
* to cancel the callback and prevent it from being run.
*/
unsigned int
meta_later_add (MetaLaterType when,
GSourceFunc func,
gpointer data,
GDestroyNotify notify)
{
MetaDisplay *display = meta_get_display ();
MetaCompositor *compositor;
g_return_val_if_fail (display, 0);
g_return_val_if_fail (display->compositor, 0);
compositor = display->compositor;
return meta_laters_add (meta_compositor_get_laters (compositor),
when, func, data, notify);
}
/**
* meta_laters_remove:
* @laters: a #MetaLaters
@ -361,27 +327,6 @@ meta_laters_remove (MetaLaters *laters,
}
}
/**
* meta_later_remove:
* @later_id: the integer ID returned from meta_later_add()
*
* Removes a callback added with meta_later_add()
*/
void
meta_later_remove (unsigned int later_id)
{
MetaDisplay *display = meta_get_display ();
MetaCompositor *compositor;
g_return_if_fail (display);
compositor = display->compositor;
if (!compositor)
return;
meta_laters_remove (meta_compositor_get_laters (compositor), later_id);
}
MetaLaters *
meta_laters_new (MetaCompositor *compositor)
{

View File

@ -47,15 +47,6 @@ typedef enum
META_EXPORT
G_DECLARE_FINAL_TYPE (MetaLaters, meta_laters, META, LATERS, GObject)
META_EXPORT
guint meta_later_add (MetaLaterType when,
GSourceFunc func,
gpointer data,
GDestroyNotify notify);
META_EXPORT
void meta_later_remove (guint later_id);
META_EXPORT
unsigned int meta_laters_add (MetaLaters *laters,
MetaLaterType when,