[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [18004] branches/blender2.5/blender/source /blender/editors/interface/interface_draw.c: 2.5

Ton Roosendaal ton at blender.org
Mon Dec 22 10:10:29 CET 2008


Revision: 18004
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=18004
Author:   ton
Date:     2008-12-22 10:10:02 +0100 (Mon, 22 Dec 2008)

Log Message:
-----------
2.5

Removed unused variables and commented out unused function.
It's very helpful for code porting work to keep commits 
warning free! If you compile debug, also disable O2 to get
these warnings.

Modified Paths:
--------------
    branches/blender2.5/blender/source/blender/editors/interface/interface_draw.c

Modified: branches/blender2.5/blender/source/blender/editors/interface/interface_draw.c
===================================================================
--- branches/blender2.5/blender/source/blender/editors/interface/interface_draw.c	2008-12-22 08:13:25 UTC (rev 18003)
+++ branches/blender2.5/blender/source/blender/editors/interface/interface_draw.c	2008-12-22 09:10:02 UTC (rev 18004)
@@ -905,7 +905,6 @@
 {
 	float rad, maxrad;
 	int align= (flag & UI_BUT_ALIGN);
-	int round_align_fix= 0;
 	
 	/* rounded corners */
 	if (ELEM4(type, MENU, ROW, ICONROW, ICONTEXTROW)) maxrad = 5.0;
@@ -1465,6 +1464,7 @@
 	}
 }
 
+#if 0
 static void ui_default_slider(int colorid, float fac, float aspect, float x1, float y1, float x2, float y2, int flag)
 {
 	float ymid, yc;
@@ -1539,6 +1539,7 @@
 
 	glShadeModel(GL_FLAT);
 }
+#endif
 
 /* default theme callback */
 static void ui_draw_default(int type, int colorid, float aspect, float x1, float y1, float x2, float y2, int flag)
@@ -1666,7 +1667,6 @@
 						 int colorid, int round, int menudeco, int curshade)
 {
 	float rad;
-	char col[4];
 	
 	rad= (y2-y1)/2.0;
 	if(rad>7.0) rad= 7.0;





More information about the Bf-blender-cvs mailing list