mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
dispatcher: Remove unused dispatcher_read_message
It is not needed since d3153f8610
Signed-off-by: Pavel Grunt <pgrunt@redhat.com>
Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
This commit is contained in:
parent
6bc1aa90c6
commit
fd1eff352d
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user