It was introduced in e3bc21957086ce03edcb3867affc2d820291fe75 but never used. Signed-off-by: Pavel Grunt <pgrunt@xxxxxxxxxx> --- server/spice_timer_queue.c | 24 ------------------------ server/spice_timer_queue.h | 1 - 2 files changed, 25 deletions(-) diff --git a/server/spice_timer_queue.c b/server/spice_timer_queue.c index c4f2f6e..f01bb4b 100644 --- a/server/spice_timer_queue.c +++ b/server/spice_timer_queue.c @@ -104,30 +104,6 @@ int spice_timer_queue_create(void) return TRUE; } -void spice_timer_queue_destroy(void) -{ - RingItem *item; - SpiceTimerQueue *queue; - - pthread_mutex_lock(&queue_list_lock); - queue = spice_timer_queue_find(); - - spice_assert(queue != NULL); - - while ((item = ring_get_head(&queue->timers))) { - SpiceTimer *timer; - - timer = SPICE_CONTAINEROF(item, SpiceTimer, link); - spice_timer_remove(timer); - } - - ring_remove(&queue->link); - free(queue); - queue_count--; - - pthread_mutex_unlock(&queue_list_lock); -} - SpiceTimer *spice_timer_queue_add(SpiceTimerFunc func, void *opaque) { SpiceTimer *timer = spice_new0(SpiceTimer, 1); diff --git a/server/spice_timer_queue.h b/server/spice_timer_queue.h index a84f6cd..def0db6 100644 --- a/server/spice_timer_queue.h +++ b/server/spice_timer_queue.h @@ -27,7 +27,6 @@ typedef struct SpiceTimerQueue SpiceTimerQueue; * In order to execute the timers functions, spice_timer_queue_cb should be called * periodically, according to spice_timer_queue_get_timeout_ms */ int spice_timer_queue_create(void); -void spice_timer_queue_destroy(void); SpiceTimer *spice_timer_queue_add(SpiceTimerFunc func, void *opaque); void spice_timer_set(SpiceTimer *timer, uint32_t ms); -- 2.5.0 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel