mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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>
This commit is contained in:
parent
ecccaea2f5
commit
12b2806761
2 changed files with 10 additions and 15 deletions
2
ui/vnc.h
2
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue