event-loop: Drop unused idle_list
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 29 Apr 2011 13:20:29 +0000 (09:20 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 29 Apr 2011 13:20:29 +0000 (09:20 -0400)
Idle sources are now just a special case of a checked source.

wayland/event-loop.c

index 60aa236..0f41034 100644 (file)
@@ -37,7 +37,6 @@
 
 struct wl_event_loop {
        int epoll_fd;
-       struct wl_list idle_list;
        struct wl_list check_list;
 };
 
@@ -375,7 +374,6 @@ wl_event_loop_add_idle(struct wl_event_loop *loop,
 
        source->func = func;
        source->base.data = data;
-       wl_list_insert(loop->idle_list.prev, &source->base.link);
        wl_event_source_check(&source->base);
 
        return &source->base;
@@ -412,7 +410,6 @@ wl_event_loop_create(void)
                free(loop);
                return NULL;
        }
-       wl_list_init(&loop->idle_list);
        wl_list_init(&loop->check_list);
 
        return loop;