[PATCH] Delete unused lastWinOrg field from GCs.

Jamey Sharp jamey at minilop.net
Sat Jun 12 08:47:03 PDT 2010


Signed-off-by: Jamey Sharp <jamey at minilop.net>
---
 dix/gc.c           |    4 ----
 fb/fbgc.c          |    3 ---
 hw/xnest/GC.c      |    2 --
 include/gcstruct.h |    1 -
 4 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/dix/gc.c b/dix/gc.c
index 6da243e..83bb524 100644
--- a/dix/gc.c
+++ b/dix/gc.c
@@ -527,8 +527,6 @@ CreateGC(DrawablePtr pDrawable, BITS32 mask, XID *pval, int *pStatus,
     pGC->numInDashList = 2;
     pGC->dash = DefaultDash;
     pGC->dashOffset = 0;
-    pGC->lastWinOrg.x = 0;
-    pGC->lastWinOrg.y = 0;
 
     /* use the default font and stipple */
     pGC->font = defaultFont;
@@ -841,8 +839,6 @@ CreateScratchGC(ScreenPtr pScreen, unsigned depth)
     pGC->dashOffset = 0;
     pGC->numInDashList = 2;
     pGC->dash = DefaultDash;
-    pGC->lastWinOrg.x = 0;
-    pGC->lastWinOrg.y = 0;
 
     /* scratch GCs in the GCperDepth pool start off unused */
     pGC->scratch_inuse = FALSE;
diff --git a/fb/fbgc.c b/fb/fbgc.c
index e3e9236..3b1dcf3 100644
--- a/fb/fbgc.c
+++ b/fb/fbgc.c
@@ -199,9 +199,6 @@ fbValidateGC(GCPtr pGC, unsigned long changes, DrawablePtr pDrawable)
     FbGCPrivPtr	pPriv = fbGetGCPrivate(pGC);
     FbBits	mask;
 
-    pGC->lastWinOrg.x = pDrawable->x;
-    pGC->lastWinOrg.y = pDrawable->y;
-
     /*
      * if the client clip is different or moved OR the subwindowMode has
      * changed OR the window's clip has changed since the last validation
diff --git a/hw/xnest/GC.c b/hw/xnest/GC.c
index 2761583..407cc77 100644
--- a/hw/xnest/GC.c
+++ b/hw/xnest/GC.c
@@ -92,8 +92,6 @@ xnestCreateGC(GCPtr pGC)
 void
 xnestValidateGC(GCPtr pGC, unsigned long changes, DrawablePtr pDrawable)
 {
-  pGC->lastWinOrg.x = pDrawable->x;
-  pGC->lastWinOrg.y = pDrawable->y;
 }
 
 void
diff --git a/include/gcstruct.h b/include/gcstruct.h
index 3f70ead..bc82193 100644
--- a/include/gcstruct.h
+++ b/include/gcstruct.h
@@ -306,7 +306,6 @@ typedef struct _GC {
     DDXPointRec		patOrg;		/* origin for (tile, stipple) */
     struct _Font	*font;
     DDXPointRec		clipOrg;
-    DDXPointRec		lastWinOrg;	/* position of window last validated */
     pointer		clientClip;
     unsigned long	stateChanges;	/* masked with GC_<kind> */
     unsigned long       serialNumber;
-- 
1.7.0



More information about the xorg-devel mailing list