[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 4/9] spice: remove unused watch list
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 4/9] spice: remove unused watch list |
Date: |
Fri, 12 Jan 2018 15:52:53 +0100 |
From: Frediano Ziglio <address@hidden>
Signed-off-by: Frediano Ziglio <address@hidden>
Message-id: address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>
---
ui/spice-core.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/ui/spice-core.c b/ui/spice-core.c
index ea04dc69b5..85b9ea2127 100644
--- a/ui/spice-core.c
+++ b/ui/spice-core.c
@@ -92,9 +92,7 @@ struct SpiceWatch {
int event_mask;
SpiceWatchFunc func;
void *opaque;
- QTAILQ_ENTRY(SpiceWatch) next;
};
-static QTAILQ_HEAD(, SpiceWatch) watches = QTAILQ_HEAD_INITIALIZER(watches);
static void watch_read(void *opaque)
{
@@ -131,7 +129,6 @@ static SpiceWatch *watch_add(int fd, int event_mask,
SpiceWatchFunc func, void *
watch->fd = fd;
watch->func = func;
watch->opaque = opaque;
- QTAILQ_INSERT_TAIL(&watches, watch, next);
watch_update_mask(watch, event_mask);
return watch;
@@ -140,7 +137,6 @@ static SpiceWatch *watch_add(int fd, int event_mask,
SpiceWatchFunc func, void *
static void watch_remove(SpiceWatch *watch)
{
qemu_set_fd_handler(watch->fd, NULL, NULL, NULL);
- QTAILQ_REMOVE(&watches, watch, next);
g_free(watch);
}
--
2.9.3
- [Qemu-devel] [PULL 0/9] Ui 20180112 patches, Gerd Hoffmann, 2018/01/12
- [Qemu-devel] [PULL 3/9] spice: remove QXLWorker interface field, Gerd Hoffmann, 2018/01/12
- [Qemu-devel] [PULL 4/9] spice: remove unused watch list,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 1/9] input: fix memory leak, Gerd Hoffmann, 2018/01/12
- [Qemu-devel] [PULL 8/9] sdl2 uses surface relative coordinates, Gerd Hoffmann, 2018/01/12
- [Qemu-devel] [PULL 5/9] spice: remove only written event_mask field, Gerd Hoffmann, 2018/01/12
- [Qemu-devel] [PULL 6/9] spice: remove unused timer list, Gerd Hoffmann, 2018/01/12
- [Qemu-devel] [PULL 2/9] ui: deprecate use of GTK 2.x in favour of 3.x series, Gerd Hoffmann, 2018/01/12
- [Qemu-devel] [PULL 9/9] sdl2: Ignore UI hotkeys after a focus change when GUI modifier is held, Gerd Hoffmann, 2018/01/12
- [Qemu-devel] [PULL 7/9] sdl2: Do not hide the cursor on auxilliary windows, Gerd Hoffmann, 2018/01/12
- Re: [Qemu-devel] [PULL 0/9] Ui 20180112 patches, Peter Maydell, 2018/01/15