ui: remove 'enabled' and 'ws_enabled' fields from VncState
commit12b2806761a2dd4b88bdbe6f3bee4bcd998a9918
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 29 Sep 2016 15:45:33 +0000 (29 16:45 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 13 Oct 2016 07:21:02 +0000 (13 09:21 +0200)
tree8e8f7c9b6740cd6a9039a9caa40c6b627b79e31c
parentecccaea2f5769bb909c7a3510dc3ff9dbd736249
ui: remove 'enabled' and 'ws_enabled' fields from VncState

The 'ws_enabled' field is never used outside of the
vnc_display_open method, so can be a local variable.

The 'enabled' field is easily replaced by a check
for whether 'lsock' is non-NULL.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 1475163940-26094-3-git-send-email-berrange@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vnc.c
ui/vnc.h