From 6c44480deab3380bb7278a74319bbc8c6d0e6359 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Tue, 29 Oct 2019 01:13:34 +0100 Subject: Pixmap.c: drop code that does not make sense This check has already been done before we reach here. Also add some comments about a condition that will never occur... --- nx-X11/programs/Xserver/hw/nxagent/Pixmap.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'nx-X11/programs/Xserver') diff --git a/nx-X11/programs/Xserver/hw/nxagent/Pixmap.c b/nx-X11/programs/Xserver/hw/nxagent/Pixmap.c index 371678d0e..5358bd37e 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Pixmap.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Pixmap.c @@ -699,6 +699,7 @@ Bool nxagentDisconnectAllPixmaps(void) #ifdef WARNING + /* Note: nxagentDisconnectPixmap() does not modify r - so this check can never succeed */ if (r == 0) { fprintf(stderr, "nxagentDisconnectAllPixmaps: WARNING! Failed to disconnect " @@ -719,6 +720,7 @@ Bool nxagentDisconnectAllPixmaps(void) #ifdef WARNING + /* Note: nxagentDisconnectPixmap() does not modify r - so this check can never succeed */ if (r == 0) { fprintf(stderr, "nxagentDisconnectAllPixmaps: WARNING! Failed to disconnect " @@ -729,16 +731,6 @@ Bool nxagentDisconnectAllPixmaps(void) } } - #ifdef WARNING - - if (r == 0) - { - fprintf(stderr, "nxagentDisconnectAllPixmaps: WARNING! Failed to disconnect " - "pixmap for client [%d].\n", i); - } - - #endif - #ifdef TEST fprintf(stderr, "nxagentDisconnectAllPixmaps: Pixmaps disconnection completed.\n"); #endif -- cgit v1.2.3