]> git.proxmox.com Git - qemu.git/commitdiff
Remove unused USES_X509_AUTH macro from VNC sasl code
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 23 Jun 2011 12:31:43 +0000 (13:31 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 23 Jul 2011 16:19:02 +0000 (11:19 -0500)
The USES_X509_AUTH macro is defined in several VNC files,
but not used in all of them. Remove the unused definition.

* ui/vnc-auth-sasl.c: Remove USES_X509_AUTH macro

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
ui/vnc-auth-sasl.c

index 8aac5ec004f5fc47cf16d597f74a280f29391deb..15af49bdb12f19b0d024705ac4ec0ddb0eddfbd4 100644 (file)
@@ -491,13 +491,6 @@ static int protocol_client_auth_sasl_mechname_len(VncState *vs, uint8_t *data, s
     return 0;
 }
 
-#define USES_X509_AUTH(vs)                              \
-    ((vs)->subauth == VNC_AUTH_VENCRYPT_X509NONE ||   \
-     (vs)->subauth == VNC_AUTH_VENCRYPT_X509VNC ||    \
-     (vs)->subauth == VNC_AUTH_VENCRYPT_X509PLAIN ||  \
-     (vs)->subauth == VNC_AUTH_VENCRYPT_X509SASL)
-
-
 void start_auth_sasl(VncState *vs)
 {
     const char *mechlist = NULL;