[Spice-devel] [PATCH 06/18] remove unused function

Frediano Ziglio fziglio at redhat.com
Mon Feb 15 16:01:07 UTC 2016


Signed-off-by: Jonathon Jongsma <jjongsma at redhat.com>
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/red-dispatcher.c | 12 ------------
 server/red-dispatcher.h |  1 -
 2 files changed, 13 deletions(-)

diff --git a/server/red-dispatcher.c b/server/red-dispatcher.c
index 7d755c1..f634d28 100644
--- a/server/red-dispatcher.c
+++ b/server/red-dispatcher.c
@@ -709,18 +709,6 @@ void red_dispatcher_on_vm_start(void)
     }
 }
 
-int red_dispatcher_count(void)
-{
-    RedDispatcher *now = dispatchers;
-    int ret = 0;
-
-    while (now) {
-        ret++;
-        now = now->next;
-    }
-    return ret;
-}
-
 uint32_t red_dispatcher_qxl_ram_size(void)
 {
     QXLDevInitInfo qxl_info;
diff --git a/server/red-dispatcher.h b/server/red-dispatcher.h
index bfb74fe..2279680 100644
--- a/server/red-dispatcher.h
+++ b/server/red-dispatcher.h
@@ -32,7 +32,6 @@ void red_dispatcher_set_mouse_mode(RedDispatcher *dispatcher, uint32_t mode);
 void red_dispatcher_set_compression_level(RedDispatcher *dispatcher, int level);
 void red_dispatcher_on_vm_stop(void);
 void red_dispatcher_on_vm_start(void);
-int red_dispatcher_count(void);
 uint32_t red_dispatcher_qxl_ram_size(void);
 void red_dispatcher_async_complete(struct RedDispatcher *, AsyncCommand *);
 struct Dispatcher *red_dispatcher_get_dispatcher(struct RedDispatcher *);
-- 
2.5.0



More information about the Spice-devel mailing list