diff src/paint.c @ 757:f43224bf3524

Remove unused variables and refactor to X_MB_init_with_win
author Thinker K.F. Li <thinker@codemud.net>
date Thu, 26 Aug 2010 17:54:11 +0800
parents e813ac222f48
children 586e50f82c1f
line wrap: on
line diff
--- a/src/paint.c	Thu Aug 26 14:54:50 2010 +0800
+++ b/src/paint.c	Thu Aug 26 17:54:11 2010 +0800
@@ -83,8 +83,6 @@
 static void paint_linear_prepare(paint_t *paint, mbe_t *cr) {
     paint_linear_t *linear = (paint_linear_t *)paint;
     mbe_pattern_t *ptn;
-    grad_stop_t *stop;
-    int i;
 
     ptn = linear->ptn;
     if(linear->flags & LIF_DIRTY) {
@@ -173,7 +171,6 @@
 static void paint_radial_prepare(paint_t *paint, mbe_t *cr) {
     paint_radial_t *radial = (paint_radial_t *)paint;
     mbe_pattern_t *ptn;
-    int i;
 
     if(radial->flags & RDF_DIRTY) {
 	ptn = mbe_pattern_create_radial(radial->cx, radial->cy, 0,