[PATCH] Delete redundant clip initializations.

Jamey Sharp jamey at minilop.net
Sat Jun 12 17:21:50 PDT 2010


CreateGC initializes clientClip and clientClipType, so per-screen
CreateGC callbacks needn't bother.

Signed-off-by: Jamey Sharp <jamey at minilop.net>
---
 fb/fbgc.c       |    3 ---
 hw/xnest/GC.c   |    3 ---
 hw/xwin/wingc.c |    2 --
 3 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/fb/fbgc.c b/fb/fbgc.c
index 45e981b..0c53674 100644
--- a/fb/fbgc.c
+++ b/fb/fbgc.c
@@ -64,9 +64,6 @@ const GCOps	fbGCOps = {
 Bool
 fbCreateGC(GCPtr pGC)
 {
-    pGC->clientClip = NULL;
-    pGC->clientClipType = CT_NONE;
-
     pGC->ops = (GCOps *) &fbGCOps;
     pGC->funcs = (GCFuncs *) &fbGCFuncs;
 
diff --git a/hw/xnest/GC.c b/hw/xnest/GC.c
index 407cc77..7968b4f 100644
--- a/hw/xnest/GC.c
+++ b/hw/xnest/GC.c
@@ -73,9 +73,6 @@ static GCOps xnestOps = {
 Bool
 xnestCreateGC(GCPtr pGC)
 {
-  pGC->clientClipType = CT_NONE;
-  pGC->clientClip = NULL;
-  
   pGC->funcs = &xnestFuncs;
   pGC->ops = &xnestOps;
   
diff --git a/hw/xwin/wingc.c b/hw/xwin/wingc.c
index 196b5b5..3ba904a 100644
--- a/hw/xwin/wingc.c
+++ b/hw/xwin/wingc.c
@@ -137,8 +137,6 @@ winCreateGCNativeGDI (GCPtr pGC)
 	  pGC->depth);
 #endif
 
-  pGC->clientClip = NULL;
-  pGC->clientClipType = CT_NONE;
   pGC->freeCompClip = FALSE;
   pGC->pCompositeClip = 0;
 
-- 
1.7.0



More information about the xorg-devel mailing list