[PATCH 06/18] remove unused function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Jonathon Jongsma <jjongsma@xxxxxxxxxx>
Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]