[PATCH 2/2] Un-export CreateScratchGC now that nothing external uses it.

Jamey Sharp jamey at minilop.net
Wed May 19 15:25:44 PDT 2010


The server and drivers sometimes use GetScratchGC, but never
CreateScratchGC.

Signed-off-by: Jamey Sharp <jamey at minilop.net>
---
 dix/gc.c     |    2 +-
 include/gc.h |    4 ----
 2 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/dix/gc.c b/dix/gc.c
index 65d05eb..56d5cda 100644
--- a/dix/gc.c
+++ b/dix/gc.c
@@ -800,7 +800,7 @@ is what fills the default tile.  (maybe this comment should
 go with CreateGC() or ChangeGC().)
 */
 
-GCPtr
+static GCPtr
 CreateScratchGC(ScreenPtr pScreen, unsigned depth)
 {
     GCPtr pGC;
diff --git a/include/gc.h b/include/gc.h
index 63eecbd..2079cfa 100644
--- a/include/gc.h
+++ b/include/gc.h
@@ -122,10 +122,6 @@ extern _X_EXPORT int FreeGC(
     pointer /*pGC*/,
     XID /*gid*/);
 
-extern _X_EXPORT GCPtr CreateScratchGC(
-    ScreenPtr /*pScreen*/,
-    unsigned /*depth*/);
-
 extern _X_EXPORT void FreeGCperDepth(
     int /*screenNum*/);
 
-- 
1.7.0



More information about the xorg-devel mailing list