[PATCH 5/7] Remove dbe screen privates.

Keith Packard keithp at keithp.com
Wed May 12 14:45:09 PDT 2010


These aren't used anywhere.

Signed-off-by: Keith Packard <keithp at keithp.com>
---
 dbe/dbe.c       |    4 +---
 dbe/dbestruct.h |    4 ----
 2 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/dbe/dbe.c b/dbe/dbe.c
index 1cda9f5..dc4bada 100644
--- a/dbe/dbe.c
+++ b/dbe/dbe.c
@@ -1456,7 +1456,6 @@ DbeResetProc(ExtensionEntry *extEntry)
 	    if (pDbeScreenPriv->ResetProc)
 		(*pDbeScreenPriv->ResetProc)(pScreen);
 
-	    dixFreePrivates(pDbeScreenPriv->devPrivates);
 	    free(pDbeScreenPriv);
 	}
     }
@@ -1595,8 +1594,7 @@ DbeExtensionInit(void)
 
 	pScreen = screenInfo.screens[i];
 
-	if (!(pDbeScreenPriv =
-              (DbeScreenPrivPtr)calloc(1, sizeof(DbeScreenPrivRec))))
+	if (!(pDbeScreenPriv = malloc (sizeof (DbeScreenPrivRec))))
 	{
             /* If we can not alloc a window or screen private,
              * then free any privates that we already alloc'ed and return
diff --git a/dbe/dbestruct.h b/dbe/dbestruct.h
index 002ffbe..ba6b56d 100644
--- a/dbe/dbestruct.h
+++ b/dbe/dbestruct.h
@@ -217,10 +217,6 @@ typedef struct _DbeScreenPrivRec
 		ScreenPtr /*pScreen*/
 );
 
-    /* Device-specific private information.
-     */
-    PrivateRec	*devPrivates;
-
 } DbeScreenPrivRec, *DbeScreenPrivPtr;
 
 #endif /* DBE_STRUCT_H */
-- 
1.7.1



More information about the xorg-devel mailing list