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>
This commit is contained in:
Marc-André Lureau 2015-10-29 16:54:41 -05:00 committed by Frediano Ziglio
parent 46d9c51f73
commit 26005ddb04
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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,

View File

@ -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 *));