summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorPavel Grunt <pgrunt@redhat.com>2015-11-23 10:43:42 +0100
committerFrediano Ziglio <fziglio@redhat.com>2015-11-23 11:45:20 +0000
commitfd1eff352d7aab2a23e0fed52c5898ea7c4af307 (patch)
treedcc86be2328df54a828693dd9a4d38e1fb9ac056 /server
parent6bc1aa90c65e3b551006a0a7e335167e7d9838c3 (diff)
downloadspice-fd1eff352d7aab2a23e0fed52c5898ea7c4af307.zip
spice-fd1eff352d7aab2a23e0fed52c5898ea7c4af307.tar.gz
spice-fd1eff352d7aab2a23e0fed52c5898ea7c4af307.tar.xz
dispatcher: Remove unused dispatcher_read_message
It is not needed since d3153f861065235c2a7a7120375be5db948c5a77 Signed-off-by: Pavel Grunt <pgrunt@redhat.com> Acked-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Diffstat (limited to 'server')
-rw-r--r--server/dispatcher.c13
-rw-r--r--server/dispatcher.h1
2 files changed, 0 insertions, 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