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

Jamey Sharp jamey at minilop.net
Sat Sep 17 01:22:33 PDT 2011


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 7968b4f..48fe4dc 100644
--- a/hw/xnest/GC.c
+++ b/hw/xnest/GC.c
@@ -81,7 +81,6 @@ xnestCreateGC(GCPtr pGC)
   xnestGCPriv(pGC)->gc = XCreateGC(xnestDisplay, 
 				   xnestDefaultDrawables[pGC->depth], 
 				   0L, NULL);
-  xnestGCPriv(pGC)->nClipRects = 0;
 
   return True;
 }
@@ -282,7 +281,6 @@ xnestChangeClip(GCPtr pGC, int type, pointer pValue, int nRects)
 
   pGC->clientClipType = type;
   pGC->clientClip = pValue;
-  xnestGCPriv(pGC)->nClipRects = nRects;
 }
 
 void
@@ -294,7 +292,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.5.4



More information about the xorg-devel mailing list