mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
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:
parent
46d9c51f73
commit
26005ddb04
@ -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;
|
||||
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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 *));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user