From 63b9d67d7f4f1fa108370c619e1d0d06baedbd4c Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 19 Aug 2010 18:40:24 -0400 Subject: mi: Remove unused miAllocateGCPrivateIndex Reviewed-by: Matt Turner Signed-off-by: Adam Jackson --- mi/mi.h | 4 ---- mi/miscrinit.c | 11 ----------- 2 files changed, 15 deletions(-) (limited to 'mi') diff --git a/mi/mi.h b/mi/mi.h index 57837c450..c186940ff 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 d349206de..fb01c6810 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 -- cgit v1.2.3