[Spice-devel] [PATCH v2 33/40] server/red_worker: remove RedChannel argument from add_buf_from_info
Alon Levy
alevy at redhat.com
Wed Mar 2 00:31:56 PST 2011
It was unused.
---
server/red_worker.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/server/red_worker.c b/server/red_worker.c
index b5bb3b3..d9b7032 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -4432,7 +4432,7 @@ static void marshaller_add_compressed(RedWorker *worker, SpiceMarshaller *m,
}
-static void add_buf_from_info(RedChannel *channel, SpiceMarshaller *m, AddBufInfo *info)
+static void add_buf_from_info(SpiceMarshaller *m, AddBufInfo *info)
{
if (info->data) {
switch (info->type) {
@@ -7929,7 +7929,7 @@ static void red_marshall_cursor_init(CursorChannel *channel, SpiceMarshaller *ba
fill_cursor(channel, &msg.cursor, worker->cursor, &info);
spice_marshall_msg_cursor_init(base_marshaller, &msg);
- add_buf_from_info(&channel->common.base, base_marshaller, &info);
+ add_buf_from_info(base_marshaller, &info);
}
static void red_marshall_local_cursor(CursorChannel *cursor_channel,
@@ -7949,7 +7949,7 @@ static void red_marshall_local_cursor(CursorChannel *cursor_channel,
fill_cursor(cursor_channel, &cursor_set.cursor, &cursor->base, &info);
spice_marshall_msg_cursor_set(base_marshaller, &cursor_set);
- add_buf_from_info(channel, base_marshaller, &info);
+ add_buf_from_info(base_marshaller, &info);
red_release_cursor(worker, (CursorItem *)cursor);
}
@@ -7997,7 +7997,7 @@ static void red_marshall_cursor(CursorChannel *cursor_channel,
fill_cursor(cursor_channel, &cursor_set.cursor, cursor, &info);
spice_marshall_msg_cursor_set(m, &cursor_set);
- add_buf_from_info(channel, m, &info);
+ add_buf_from_info(m, &info);
break;
}
case QXL_CURSOR_HIDE:
--
1.7.4.1
More information about the Spice-devel
mailing list