io: get rid of qio_channel_websock_encode helper method
commitbac6c95415788c03590542eb244c723a18d0771c
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 9 Oct 2017 13:39:17 +0000 (9 14:39 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 16 Oct 2017 15:57:08 +0000 (16 16:57 +0100)
tree6f8a1060f658a0561f101d458b3e8e5c814b0d14
parent57b0cdf152b7266e68bfa3e84635d4bdb64ef2cd
io: get rid of qio_channel_websock_encode helper method

The qio_channel_websock_encode method is only used in one place,
everything else calls qio_channel_websock_encode_buffer directly.
It can also be pushed up a level into the qio_channel_websock_writev
method, since every other caller of qio_channel_websock_write_wire
has already filled encoutput.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
io/channel-websock.c