diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2017-11-22 13:56:25 +0000 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-01-12 14:35:58 +0100 |
commit | abda4766815af3db3c3c43fa96a45d935e2b217a (patch) | |
tree | 2647e4ee2afb40219c31a45f4462b6ca87a8bc31 /ui | |
parent | 58a5d33aa8da8b0f55c97232f74bdf987885df17 (diff) | |
download | qemu-abda4766815af3db3c3c43fa96a45d935e2b217a.zip qemu-abda4766815af3db3c3c43fa96a45d935e2b217a.tar.gz qemu-abda4766815af3db3c3c43fa96a45d935e2b217a.tar.bz2 |
spice: remove unused timer list
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Message-id: 20171122135625.16625-4-fziglio@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/spice-core.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/ui/spice-core.c b/ui/spice-core.c index 6d579fa..2baf0c7 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -55,9 +55,7 @@ static QemuThread me; struct SpiceTimer { QEMUTimer *timer; - QTAILQ_ENTRY(SpiceTimer) next; }; -static QTAILQ_HEAD(, SpiceTimer) timers = QTAILQ_HEAD_INITIALIZER(timers); static SpiceTimer *timer_add(SpiceTimerFunc func, void *opaque) { @@ -65,7 +63,6 @@ static SpiceTimer *timer_add(SpiceTimerFunc func, void *opaque) timer = g_malloc0(sizeof(*timer)); timer->timer = timer_new_ms(QEMU_CLOCK_REALTIME, func, opaque); - QTAILQ_INSERT_TAIL(&timers, timer, next); return timer; } @@ -83,7 +80,6 @@ static void timer_remove(SpiceTimer *timer) { timer_del(timer->timer); timer_free(timer->timer); - QTAILQ_REMOVE(&timers, timer, next); g_free(timer); } |