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:
authorCampbell Barton <ideasman42@gmail.com>2012-04-23 11:32:13 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-23 11:32:13 +0400
commitceffa6e1fab2b4b1388458bcf7c735e2783f90d8 (patch)
tree0f9e99abdd3417356dfb0162175623f744aa79fe /source/blender/editors
parentf9ab956d53f7eabe3dbcd90431601a6d9326ed9d (diff)
code cleanup: comment unused functions (removed one which isnt useful anymore).
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/include/BIF_glutil.h4
-rw-r--r--source/blender/editors/screen/glutil.c9
-rw-r--r--source/blender/editors/space_sequencer/sequencer_edit.c2
-rw-r--r--source/blender/editors/space_view3d/view3d_view.c2
-rw-r--r--source/blender/editors/util/ed_util.c4
-rw-r--r--source/blender/editors/uvedit/uvedit_ops.c15
6 files changed, 14 insertions, 22 deletions
diff --git a/source/blender/editors/include/BIF_glutil.h b/source/blender/editors/include/BIF_glutil.h
index ade34c43eec..44195988c40 100644
--- a/source/blender/editors/include/BIF_glutil.h
+++ b/source/blender/editors/include/BIF_glutil.h
@@ -198,12 +198,12 @@ void gla2DSetMap(gla2DDrawInfo *di, struct rctf *rect);
/* use this for platform hacks. glPointSize is solved here */
void bglBegin(int mode);
void bglEnd(void);
-int bglPointHack(void);
+// int bglPointHack(void); /* UNUSED */
void bglVertex3fv(const float vec[3]);
void bglVertex3f(float x, float y, float z);
void bglVertex2fv(const float vec[2]);
/* intel gfx cards frontbuffer problem */
-void bglFlush(void);
+// void bglFlush(void); /* UNUSED */
void set_inverted_drawing(int enable);
void setlinestyle(int nr);
diff --git a/source/blender/editors/screen/glutil.c b/source/blender/editors/screen/glutil.c
index 66abbaecbe7..5ba0e86e0c1 100644
--- a/source/blender/editors/screen/glutil.c
+++ b/source/blender/editors/screen/glutil.c
@@ -690,6 +690,8 @@ void glaDefine2DArea(rcti *screen_rect)
glLoadIdentity();
}
+#if 0 /* UNUSED */
+
struct gla2DDrawInfo {
int orig_vp[4], orig_sc[4];
float orig_projmat[16], orig_viewmat[16];
@@ -721,7 +723,6 @@ void gla2DSetMap(gla2DDrawInfo *di, rctf *rect)
di->wo_to_sc[1]= sc_h/wo_h;
}
-
gla2DDrawInfo *glaBegin2DDraw(rcti *screen_rect, rctf *world_rect)
{
gla2DDrawInfo *di= MEM_mallocN(sizeof(*di), "gla2DDrawInfo");
@@ -779,6 +780,7 @@ void glaEnd2DDraw(gla2DDrawInfo *di)
MEM_freeN(di);
}
+#endif
/* **************** glPoint hack ************************ */
@@ -805,6 +807,7 @@ void bglBegin(int mode)
}
}
+#if 0 /* UNUSED */
int bglPointHack(void)
{
float value[4];
@@ -818,6 +821,7 @@ int bglPointHack(void)
}
return 0;
}
+#endif
void bglVertex3fv(const float vec[3])
{
@@ -927,6 +931,7 @@ void bglPolygonOffset(float viewdist, float dist)
}
}
+#if 0 /* UNUSED */
void bglFlush(void)
{
glFlush();
@@ -935,4 +940,4 @@ void bglFlush(void)
// XXX myswapbuffers(); //hack to get mac intel graphics to show frontbuffer
#endif
}
-
+#endif
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c
index 38183ac52c7..bd306f2d646 100644
--- a/source/blender/editors/space_sequencer/sequencer_edit.c
+++ b/source/blender/editors/space_sequencer/sequencer_edit.c
@@ -1003,11 +1003,13 @@ int sequencer_edit_poll(bContext *C)
return (seq_give_editing(CTX_data_scene(C), FALSE) != NULL);
}
+#if 0 /* UNUSED */
int sequencer_strip_poll(bContext *C)
{
Editing *ed;
return (((ed = seq_give_editing(CTX_data_scene(C), FALSE)) != NULL) && (ed->act_seq != NULL));
}
+#endif
int sequencer_strip_has_path_poll(bContext *C)
{
diff --git a/source/blender/editors/space_view3d/view3d_view.c b/source/blender/editors/space_view3d/view3d_view.c
index c40478f440e..8a0cb4b597b 100644
--- a/source/blender/editors/space_view3d/view3d_view.c
+++ b/source/blender/editors/space_view3d/view3d_view.c
@@ -1826,7 +1826,7 @@ void VIEW3D_OT_game_start(wmOperatorType *ot)
/* ************************************** */
-void view3d_align_axis_to_vector(View3D *v3d, RegionView3D *rv3d, int axisidx, float vec[3])
+static void UNUSED_FUNCTION(view3d_align_axis_to_vector)(View3D *v3d, RegionView3D *rv3d, int axisidx, float vec[3])
{
float alignaxis[3] = {0.0, 0.0, 0.0};
float norm[3], axis[3], angle, new_quat[4];
diff --git a/source/blender/editors/util/ed_util.c b/source/blender/editors/util/ed_util.c
index 5dce3d0a2fa..6d9f2732d8a 100644
--- a/source/blender/editors/util/ed_util.c
+++ b/source/blender/editors/util/ed_util.c
@@ -149,7 +149,7 @@ void apply_keyb_grid(int shift, int ctrl, float *val, float fac1, float fac2, fl
}
}
-
+#if 0 /* UNUSED */
int GetButStringLength(const char *str)
{
int rt;
@@ -158,7 +158,7 @@ int GetButStringLength(const char *str)
return rt + 15;
}
-
+#endif
void unpack_menu(bContext *C, const char *opname, const char *id_name, const char *abs_name, const char *folder, struct PackedFile *pf)
{
diff --git a/source/blender/editors/uvedit/uvedit_ops.c b/source/blender/editors/uvedit/uvedit_ops.c
index a53a42b616b..c08093e09ee 100644
--- a/source/blender/editors/uvedit/uvedit_ops.c
+++ b/source/blender/editors/uvedit/uvedit_ops.c
@@ -569,21 +569,6 @@ void poly_copy_aspect(float uv_orig[][2], float uv[][2], float aspx, float aspy,
}
}
-void uv_copy_aspect(float uv_orig[][2], float uv[][2], float aspx, float aspy)
-{
- uv[0][0] = uv_orig[0][0] * aspx;
- uv[0][1] = uv_orig[0][1] * aspy;
-
- uv[1][0] = uv_orig[1][0] * aspx;
- uv[1][1] = uv_orig[1][1] * aspy;
-
- uv[2][0] = uv_orig[2][0] * aspx;
- uv[2][1] = uv_orig[2][1] * aspy;
-
- uv[3][0] = uv_orig[3][0] * aspx;
- uv[3][1] = uv_orig[3][1] * aspy;
-}
-
int ED_uvedit_minmax(Scene *scene, Image *ima, Object *obedit, float *min, float *max)
{
BMEditMesh *em = BMEdit_FromObject(obedit);