aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-10-31 01:29:11 +0100
committerUlrich Sibiller <uli42@gmx.de>2020-01-05 22:40:32 +0100
commit22f01d23a0a324d8a7a74a8e688ff05caf828f6e (patch)
tree7aae9340c4f1ccff733f6db201dbbe870b3eec76 /nx-X11
parent1bb0e999eb7ad6bbc6c470a2ecf833c22500b5c1 (diff)
downloadnx-libs-22f01d23a0a324d8a7a74a8e688ff05caf828f6e.tar.gz
nx-libs-22f01d23a0a324d8a7a74a8e688ff05caf828f6e.tar.bz2
nx-libs-22f01d23a0a324d8a7a74a8e688ff05caf828f6e.zip
Visual.{ch}: disable unused code
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Visual.c2
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Visual.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Visual.c b/nx-X11/programs/Xserver/hw/nxagent/Visual.c
index 43f582f16..6be82148f 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Visual.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Visual.c
@@ -111,6 +111,7 @@ Colormap nxagentDefaultVisualColormap(Visual *visual)
return None;
}
+#if 0
/*
* This is currently unused. It should serve the scope of matching a
* visual whenever a drawable has a different depth than the real
@@ -129,6 +130,7 @@ Visual *nxagentVisualFromDepth(ScreenPtr pScreen, int depth)
return NULL;
}
+#endif
/*
* Create a fake 32 bits depth visual and initialize it based on the
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Visual.h b/nx-X11/programs/Xserver/hw/nxagent/Visual.h
index cfb0f8977..40946f3c0 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Visual.h
+++ b/nx-X11/programs/Xserver/hw/nxagent/Visual.h
@@ -42,7 +42,10 @@ is" without express or implied warranty.
Visual *nxagentVisual(VisualPtr pVisual);
Visual *nxagentVisualFromID(ScreenPtr pScreen, VisualID visual);
+
+#if 0
Visual *nxagentVisualFromDepth(ScreenPtr pScreen, int depth);
+#endif
Colormap nxagentDefaultVisualColormap(Visual *visual);