summaryrefslogtreecommitdiff
path: root/ui/vnc.h
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2016-09-29 16:45:33 +0100
committerGerd Hoffmann <kraxel@redhat.com>2016-10-13 09:21:02 +0200
commit12b2806761a2dd4b88bdbe6f3bee4bcd998a9918 (patch)
tree8e8f7c9b6740cd6a9039a9caa40c6b627b79e31c /ui/vnc.h
parentecccaea2f5769bb909c7a3510dc3ff9dbd736249 (diff)
downloadqemu-12b2806761a2dd4b88bdbe6f3bee4bcd998a9918.tar.gz
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>
Diffstat (limited to 'ui/vnc.h')
-rw-r--r--ui/vnc.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/ui/vnc.h b/ui/vnc.h
index ab5f244116..a0519cc9d6 100644
--- a/ui/vnc.h
+++ b/ui/vnc.h
@@ -150,7 +150,6 @@ struct VncDisplay
guint lsock_tag;
QIOChannelSocket *lwebsock;
guint lwebsock_tag;
- bool ws_enabled;
DisplaySurface *ds;
DisplayChangeListener dcl;
kbd_layout_t *kbd_layout;
@@ -167,7 +166,6 @@ struct VncDisplay
const char *id;
QTAILQ_ENTRY(VncDisplay) next;
- bool enabled;
bool is_unix;
char *password;
time_t expires;