[PATCH 12/13] mi: Remove unused miAllocateGCPrivateIndex

Adam Jackson ajax at redhat.com
Tue Nov 23 11:45:47 PST 2010


Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 mi/mi.h        |    4 ----
 mi/miscrinit.c |   11 -----------
 2 files changed, 0 insertions(+), 15 deletions(-)

diff --git a/mi/mi.h b/mi/mi.h
index 57837c4..c186940 100644
--- a/mi/mi.h
+++ b/mi/mi.h
@@ -456,10 +456,6 @@ extern _X_EXPORT Bool miScreenInit(
     VisualPtr /*visuals*/
 );
 
-extern _X_EXPORT DevPrivateKey miAllocateGCPrivateIndex(
-    void
-);
-
 /* mivaltree.c */
 
 extern _X_EXPORT int miShapedWindowIn(
diff --git a/mi/miscrinit.c b/mi/miscrinit.c
index d349206..fb01c68 100644
--- a/mi/miscrinit.c
+++ b/mi/miscrinit.c
@@ -283,17 +283,6 @@ miScreenInit(
     return miScreenDevPrivateInit(pScreen, width, pbits);
 }
 
-static DevPrivateKeyRec privateKeyRec;
-#define privateKey (&privateKeyRec)
-
-DevPrivateKey
-miAllocateGCPrivateIndex(void)
-{
-    if (!dixRegisterPrivateKey(&privateKeyRec, PRIVATE_GC, 0))
-	return NULL;
-    return privateKey;
-}
-
 DevPrivateKeyRec miZeroLineScreenKeyRec;
 
 void
-- 
1.7.3.1



More information about the xorg-devel mailing list