red-channel-client: Remove only written field

id field of RedChannelClient is not used and marked as debugging.
Also it's value is quite confusing.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
This commit is contained in:
Frediano Ziglio 2016-10-31 06:00:09 +00:00
parent c7f492b75c
commit 5d88c28786
2 changed files with 0 additions and 2 deletions

View File

@ -87,7 +87,6 @@ struct RedChannelClientPrivate
} send_data;
int during_send;
int id; // debugging purposes
GQueue pipe;
RedChannelCapabilities remote_caps;

View File

@ -914,7 +914,6 @@ static gboolean red_channel_client_initable_init(GInitable *initable,
SPICE_WATCH_EVENT_READ,
red_channel_client_event,
self);
self->priv->id = red_channel_get_n_clients(self->priv->channel);
red_channel_add_client(self->priv->channel, self);
red_client_add_channel(self->priv->client, self);