Commit 6c44480d authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

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...
parent 0535c49c
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment