Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2008-12-22 12:10:02 +0300
committerTon Roosendaal <ton@blender.org>2008-12-22 12:10:02 +0300
commit6d31872298e2f6fd23d06a4ccb792647879163ca (patch)
tree4ea86989eb2d60df2e66414130e520cbde17b88c /source/blender/editors/interface/interface_draw.c
parent5959df8bf85776b4129a58346b99047a7b6dceaa (diff)
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.
Diffstat (limited to 'source/blender/editors/interface/interface_draw.c')
-rw-r--r--source/blender/editors/interface/interface_draw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_draw.c b/source/blender/editors/interface/interface_draw.c
index c798bd88da6..a54bf2cd277 100644
--- a/source/blender/editors/interface/interface_draw.c
+++ b/source/blender/editors/interface/interface_draw.c
@@ -905,7 +905,6 @@ static void ui_roundshaded_button(int type, int colorid, float asp, float x1, fl
{
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 @@ static void ui_default_flat(int type, int colorid, float asp, float x1, float y1
}
}
+#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 @@ static void ui_default_slider(int colorid, float fac, float aspect, float x1, fl
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 @@ static void round_button(float x1, float y1, float x2, float y2, float asp,
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;