summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2015-10-29 16:54:41 -0500
committerFrediano Ziglio <fziglio@redhat.com>2015-10-30 08:47:45 +0000
commit26005ddb042f7445aec4b6ea795af486dc0b42b8 (patch)
tree430198a2b3ae89792f0de73a0a0a3cf5fd1badfc
parent46d9c51f7351a60562089c9f0b0433f52c9e26d1 (diff)
downloadspice-26005ddb042f7445aec4b6ea795af486dc0b42b8.tar.gz
spice-26005ddb042f7445aec4b6ea795af486dc0b42b8.tar.xz
spice-26005ddb042f7445aec4b6ea795af486dc0b42b8.zip
Remove unused parameter from cursor_channel_new()
cursor_channel_new() is only called from one location, and always passes FALSE as the value for the 'migrate' paramater. In addition, this parameter is not used within the function. Remove it. Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
-rw-r--r--server/cursor-channel.c2
-rw-r--r--server/cursor-channel.h2
-rw-r--r--server/red_worker.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/server/cursor-channel.c b/server/cursor-channel.c
index 6cc2b93b..ee6520f2 100644
--- a/server/cursor-channel.c
+++ b/server/cursor-channel.c
@@ -357,7 +357,7 @@ static void cursor_channel_release_item(RedChannelClient *rcc, PipeItem *item, i
}
}
-CursorChannel* cursor_channel_new(RedWorker *worker, int migrate)
+CursorChannel* cursor_channel_new(RedWorker *worker)
{
CursorChannel* cursor;
diff --git a/server/cursor-channel.h b/server/cursor-channel.h
index 2c19859f..6a26bdb7 100644
--- a/server/cursor-channel.h
+++ b/server/cursor-channel.h
@@ -77,7 +77,7 @@ typedef struct CursorChannel {
G_STATIC_ASSERT(sizeof(CursorItem) <= QXL_CURSUR_DEVICE_DATA_SIZE);
-CursorChannel* cursor_channel_new (RedWorker *worker, int migrate);
+CursorChannel* cursor_channel_new (RedWorker *worker);
void cursor_channel_disconnect (RedChannel *channel);
void cursor_channel_reset (CursorChannel *cursor);
void cursor_channel_process_cmd (CursorChannel *cursor, RedCursorCmd *cursor_cmd,
diff --git a/server/red_worker.c b/server/red_worker.c
index c8e4b2ca..9a4869f5 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -10632,7 +10632,7 @@ void handle_dev_cursor_channel_create(void *opaque, void *payload)
// TODO: handle seemless migration. Temp, setting migrate to FALSE
if (!worker->cursor_channel) {
- worker->cursor_channel = cursor_channel_new(worker, FALSE);
+ worker->cursor_channel = cursor_channel_new(worker);
}
red_channel = &worker->cursor_channel->common.base;
send_data(worker->channel, &red_channel, sizeof(RedChannel *));