diff options
author | Keith Packard <keithp@keithp.com> | 2010-05-01 01:41:19 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-05-15 19:57:48 -0700 |
commit | 345eb171264325d73ea2c50ba8c692cf589c2a9b (patch) | |
tree | f2e35d84d8ea5eb707fb55ea2010ac99abe024be | |
parent | 87ea5760f86eb60840e6e2c10012915952df5377 (diff) |
Remove dbe screen private privates.
Each DBE Screen private structure could have nested privates. Oddly,
no code ever used them.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
-rw-r--r-- | dbe/dbe.c | 4 | ||||
-rw-r--r-- | dbe/dbestruct.h | 4 |
2 files changed, 1 insertions, 7 deletions
@@ -1450,7 +1450,6 @@ DbeResetProc(ExtensionEntry *extEntry) if (pDbeScreenPriv->ResetProc) (*pDbeScreenPriv->ResetProc)(pScreen); - dixFreePrivates(pDbeScreenPriv->devPrivates); free(pDbeScreenPriv); } } @@ -1589,8 +1588,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 002ffbeb2..ba6b56d79 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 */ |