[PATCH] damage: Remove the 'damage window' resource type
Adam Jackson
ajax at redhat.com
Mon Mar 28 07:56:08 PDT 2011
No code to create objects of this type ever existed.
Signed-off-by: Adam Jackson <ajax at redhat.com>
---
damageext/damageext.c | 20 --------------------
1 files changed, 0 insertions(+), 20 deletions(-)
diff --git a/damageext/damageext.c b/damageext/damageext.c
index 754383d..88e64aa 100644
--- a/damageext/damageext.c
+++ b/damageext/damageext.c
@@ -30,7 +30,6 @@
static unsigned char DamageReqCode;
static int DamageEventBase;
static RESTYPE DamageExtType;
-static RESTYPE DamageExtWinType;
static DevPrivateKeyRec DamageClientPrivateKeyRec;
#define DamageClientPrivateKey (&DamageClientPrivateKeyRec)
@@ -441,12 +440,7 @@ FreeDamageExt (pointer value, XID did)
{
DamageExtPtr pDamageExt = (DamageExtPtr) value;
- /*
- * Get rid of the resource table entry hanging from the window id
- */
pDamageExt->id = 0;
- if (WindowDrawable(pDamageExt->pDrawable->type))
- FreeResourceByType (pDamageExt->pDrawable->id, DamageExtWinType, TRUE);
if (pDamageExt->pDamage)
{
DamageUnregister (pDamageExt->pDrawable, pDamageExt->pDamage);
@@ -456,16 +450,6 @@ FreeDamageExt (pointer value, XID did)
return Success;
}
-static int
-FreeDamageExtWin (pointer value, XID wid)
-{
- DamageExtPtr pDamageExt = (DamageExtPtr) value;
-
- if (pDamageExt->id)
- FreeResource (pDamageExt->id, RT_NONE);
- return Success;
-}
-
static void
SDamageNotifyEvent (xDamageNotifyEvent *from,
xDamageNotifyEvent *to)
@@ -497,10 +481,6 @@ DamageExtensionInit(void)
if (!DamageExtType)
return;
- DamageExtWinType = CreateNewResourceType (FreeDamageExtWin, "DamageExtWin");
- if (!DamageExtWinType)
- return;
-
if (!dixRegisterPrivateKey(&DamageClientPrivateKeyRec, PRIVATE_CLIENT, sizeof (DamageClientRec)))
return;
--
1.7.4.1
More information about the xorg-devel
mailing list