mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-05 13:29:50 -05:00
event-loop: Drop unused idle_list
Idle sources are now just a special case of a checked source.
This commit is contained in:
parent
c964a5201e
commit
a0da7468f8
1 changed files with 0 additions and 3 deletions
|
|
@ -37,7 +37,6 @@
|
||||||
|
|
||||||
struct wl_event_loop {
|
struct wl_event_loop {
|
||||||
int epoll_fd;
|
int epoll_fd;
|
||||||
struct wl_list idle_list;
|
|
||||||
struct wl_list check_list;
|
struct wl_list check_list;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -375,7 +374,6 @@ wl_event_loop_add_idle(struct wl_event_loop *loop,
|
||||||
|
|
||||||
source->func = func;
|
source->func = func;
|
||||||
source->base.data = data;
|
source->base.data = data;
|
||||||
wl_list_insert(loop->idle_list.prev, &source->base.link);
|
|
||||||
wl_event_source_check(&source->base);
|
wl_event_source_check(&source->base);
|
||||||
|
|
||||||
return &source->base;
|
return &source->base;
|
||||||
|
|
@ -412,7 +410,6 @@ wl_event_loop_create(void)
|
||||||
free(loop);
|
free(loop);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
wl_list_init(&loop->idle_list);
|
|
||||||
wl_list_init(&loop->check_list);
|
wl_list_init(&loop->check_list);
|
||||||
|
|
||||||
return loop;
|
return loop;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue