[PATCH] xnest: Delete unused nClipRects GC-private field.

Jamey Sharp jamey at minilop.net
Mon Jun 14 10:27:39 PDT 2010


This field was never read at any time in the git history.

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

diff --git a/hw/xnest/GC.c b/hw/xnest/GC.c
index 2761583..4cfab29 100644
--- a/hw/xnest/GC.c
+++ b/hw/xnest/GC.c
@@ -84,7 +84,6 @@ xnestCreateGC(GCPtr pGC)
   xnestGCPriv(pGC)->gc = XCreateGC(xnestDisplay, 
 				   xnestDefaultDrawables[pGC->depth], 
 				   0L, NULL);
-  xnestGCPriv(pGC)->nClipRects = 0;
 
   return True;
 }
@@ -287,7 +286,6 @@ xnestChangeClip(GCPtr pGC, int type, pointer pValue, int nRects)
 
   pGC->clientClipType = type;
   pGC->clientClip = pValue;
-  xnestGCPriv(pGC)->nClipRects = nRects;
 }
 
 void
@@ -299,7 +297,6 @@ xnestDestroyClip(GCPtr pGC)
  
   pGC->clientClipType = CT_NONE;
   pGC->clientClip = NULL;
-  xnestGCPriv(pGC)->nClipRects = 0;
 }
 
 void
diff --git a/hw/xnest/XNGC.h b/hw/xnest/XNGC.h
index 9f10456..c4a6cef 100644
--- a/hw/xnest/XNGC.h
+++ b/hw/xnest/XNGC.h
@@ -19,7 +19,6 @@ is" without express or implied warranty.
 
 typedef struct {
   XlibGC gc;
-  int nClipRects;
 } xnestPrivGC;
 
 extern DevPrivateKeyRec xnestGCPrivateKeyRec;
-- 
1.7.0



More information about the xorg-devel mailing list