[Spice-devel] [PATCH spice 5/5] red_channel: remove pre_disconnect hook
Hans de Goede
hdegoede at redhat.com
Sat Mar 10 11:31:29 PST 2012
Now that red_worker's EventListener is gone there are no more users of it.
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
server/red_channel.c | 3 ---
server/red_channel.h | 1 -
2 files changed, 4 deletions(-)
diff --git a/server/red_channel.c b/server/red_channel.c
index 5f906e6..ecb512d 100644
--- a/server/red_channel.c
+++ b/server/red_channel.c
@@ -1191,9 +1191,6 @@ void red_channel_client_disconnect(RedChannelClient *rcc)
return;
}
red_channel_client_pipe_clear(rcc);
- if (rcc->channel->channel_cbs.pre_disconnect) {
- rcc->channel->channel_cbs.pre_disconnect(rcc);
- }
if (rcc->stream->watch) {
rcc->channel->core->watch_remove(rcc->stream->watch);
rcc->stream->watch = NULL;
diff --git a/server/red_channel.h b/server/red_channel.h
index ce534ca..5dfd187 100644
--- a/server/red_channel.h
+++ b/server/red_channel.h
@@ -187,7 +187,6 @@ typedef void (*channel_client_migrate_proc)(RedChannelClient *base);
*/
typedef struct {
channel_configure_socket_proc config_socket;
- channel_disconnect_proc pre_disconnect;
channel_disconnect_proc on_disconnect;
channel_send_pipe_item_proc send_item;
channel_hold_pipe_item_proc hold_item;
--
1.7.9.3
More information about the Spice-devel
mailing list