[PATCH spice-server v2 02/11] dispatcher: Remove unused dispatcher_read_message

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

 



It is not needed since d3153f861065235c2a7a7120375be5db948c5a77

Signed-off-by: Pavel Grunt <pgrunt@xxxxxxxxxx>
---
 server/dispatcher.c | 13 -------------
 server/dispatcher.h |  1 -
 2 files changed, 14 deletions(-)

diff --git a/server/dispatcher.c b/server/dispatcher.c
index 945edba..d6c03ca 100644
--- a/server/dispatcher.c
+++ b/server/dispatcher.c
@@ -200,19 +200,6 @@ unlock:
     pthread_mutex_unlock(&dispatcher->lock);
 }
 
-uint32_t dispatcher_read_message(Dispatcher *dispatcher)
-{
-    uint32_t message = 0;
-
-    spice_return_val_if_fail(dispatcher, 0);
-    spice_return_val_if_fail(dispatcher->send_fd != -1, 0);
-
-    if (read_safe(dispatcher->send_fd, (uint8_t*)&message, sizeof(message), 1) == -1)
-        spice_warn_if_reached();
-
-    return message;
-}
-
 void dispatcher_register_async_done_callback(
                                         Dispatcher *dispatcher,
                                         dispatcher_handle_async_done handler)
diff --git a/server/dispatcher.h b/server/dispatcher.h
index 210e317..b774f61 100644
--- a/server/dispatcher.h
+++ b/server/dispatcher.h
@@ -62,7 +62,6 @@ struct Dispatcher {
  */
 void dispatcher_send_message(Dispatcher *dispatcher, uint32_t message_type,
                              void *payload);
-uint32_t dispatcher_read_message(Dispatcher *dispatcher);
 
 /*
  * dispatcher_init
-- 
2.5.0

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://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]