kms/update: Remove API to remove result listener
Its use have been replaced with creating and adding state to an update only when it's expected to be posted. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2814>
This commit is contained in:
parent
0742170062
commit
2f39f759c2
@ -546,28 +546,6 @@ meta_kms_update_add_result_listener (MetaKmsUpdate *update,
|
|||||||
listener);
|
listener);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
meta_kms_update_remove_result_listeners (MetaKmsUpdate *update,
|
|
||||||
MetaKmsResultListenerFunc func,
|
|
||||||
gpointer user_data)
|
|
||||||
{
|
|
||||||
GList *l;
|
|
||||||
|
|
||||||
for (l = update->result_listeners; l;)
|
|
||||||
{
|
|
||||||
MetaKmsResultListener *listener = l->data;
|
|
||||||
GList *next = l->next;
|
|
||||||
|
|
||||||
if (listener->user_data == func && listener->user_data == user_data)
|
|
||||||
{
|
|
||||||
update->result_listeners =
|
|
||||||
g_list_delete_link (update->result_listeners, l);
|
|
||||||
}
|
|
||||||
|
|
||||||
l = next;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
GList *
|
GList *
|
||||||
meta_kms_update_take_result_listeners (MetaKmsUpdate *update)
|
meta_kms_update_take_result_listeners (MetaKmsUpdate *update)
|
||||||
{
|
{
|
||||||
|
@ -164,10 +164,6 @@ void meta_kms_update_add_result_listener (MetaKmsUpdate *update,
|
|||||||
MetaKmsResultListenerFunc func,
|
MetaKmsResultListenerFunc func,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
|
|
||||||
void meta_kms_update_remove_result_listeners (MetaKmsUpdate *update,
|
|
||||||
MetaKmsResultListenerFunc func,
|
|
||||||
gpointer user_data);
|
|
||||||
|
|
||||||
static inline MetaFixed16
|
static inline MetaFixed16
|
||||||
meta_fixed_16_from_int (int16_t d)
|
meta_fixed_16_from_int (int16_t d)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user