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>2018-05-16 20:04:07 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-16 20:04:29 +0300
commit9abb4b555a38abcd81c3fc7d109dbcffb364d318 (patch)
tree78d569e3e07c12804ef3b5da014ae41bdfb1f4c3 /source/blender/draw/intern/draw_cache.c
parent527c9af48f08f280182b248ea9b4af51f75ab8ca (diff)
Cleanup: unused vars
Diffstat (limited to 'source/blender/draw/intern/draw_cache.c')
-rw-r--r--source/blender/draw/intern/draw_cache.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_cache.c b/source/blender/draw/intern/draw_cache.c
index 7fa21cb209b..96a6a616072 100644
--- a/source/blender/draw/intern/draw_cache.c
+++ b/source/blender/draw/intern/draw_cache.c
@@ -116,10 +116,10 @@ void DRW_shape_cache_free(void)
/** \name Helper functions
* \{ */
-static void add_fancy_edge(
+static void UNUSED_FUNCTION(add_fancy_edge)(
Gwn_VertBuf *vbo, uint pos_id, uint n1_id, uint n2_id,
uint *v_idx, const float co1[3], const float co2[3],
-const float n1[3], const float n2[3])
+ const float n1[3], const float n2[3])
{
GWN_vertbuf_attr_set(vbo, n1_id, *v_idx, n1);
GWN_vertbuf_attr_set(vbo, n2_id, *v_idx, n2);
@@ -1548,6 +1548,7 @@ static const float bone_octahedral_smooth_normals[6][3] = {
{ 0.0f, 1.0f, 0.0f}
};
+#if 0 /* UNUSED */
static const uint bone_octahedral_wire[24] = {
0, 1, 1, 5, 5, 3, 3, 0,
0, 4, 4, 5, 5, 2, 2, 0,
@@ -1561,6 +1562,7 @@ static const uint bone_octahedral_wire_adjacent_face[24] = {
2, 3, 6, 7, 4, 5, 0, 1,
0, 4, 1, 5, 2, 6, 3, 7,
};
+#endif
static const uint bone_octahedral_solid_tris[8][3] = {
{2, 1, 0}, /* bottom */
@@ -1673,6 +1675,7 @@ static const float bone_box_smooth_normals[8][3] = {
{-M_SQRT3, M_SQRT3, M_SQRT3},
};
+#if 0 /* UNUSED */
static const uint bone_box_wire[24] = {
0, 1, 1, 2, 2, 3, 3, 0,
4, 5, 5, 6, 6, 7, 7, 4,
@@ -1686,6 +1689,7 @@ static const uint bone_box_wire_adjacent_face[24] = {
3, 10, 5, 10, 7, 11, 9, 11,
3, 8, 2, 5, 4, 7, 6, 9,
};
+#endif
static const uint bone_box_solid_tris[12][3] = {
{0, 2, 1}, /* bottom */