[PATCH 1/2] mi: Remove unused miAllocateGCPrivateIndex
Adam Jackson
ajax at redhat.com
Tue Aug 24 13:21:30 PDT 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 661ecb2..c1a880f 100644
--- a/mi/miscrinit.c
+++ b/mi/miscrinit.c
@@ -292,17 +292,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.2
More information about the xorg-devel
mailing list