summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2015-10-20 17:23:19 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2015-10-20 17:23:19 +0200
commit005768796a108522072f5d0ffa80744f078e6539 (patch)
tree32d01b99e0d9b125fe250b64cb932455563c03e9
parent4f295c3f522568c6d00b945f1d004c69ce0be28c (diff)
examples/sphere_hunter: remove unused function
After fixing the Coverity issue clang told me that this function is actually not used at all.
-rw-r--r--src/examples/sphere_hunter/evas_3d_sphere_hunter.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/examples/sphere_hunter/evas_3d_sphere_hunter.c b/src/examples/sphere_hunter/evas_3d_sphere_hunter.c
index 87f11ae73..1307b5ff3 100644
--- a/src/examples/sphere_hunter/evas_3d_sphere_hunter.c
+++ b/src/examples/sphere_hunter/evas_3d_sphere_hunter.c
@@ -179,25 +179,6 @@ static const unsigned short cube_indices[] =
179 20, 21, 22, 22, 21, 23 179 20, 21, 22, 22, 21, 23
180}; 180};
181 181
182static inline vec3
183_normalize(const vec3 *v)
184{
185
186 double l;
187 vec3 vec = {0.0, 0.0, 0.0};
188
189 l = sqrt((v->x * v->x) + (v->y * v->y) + (v->z * v->z));
190
191 if (l != 0)
192 {
193 vec.x = v->x / l;
194 vec.y = v->y / l;
195 vec.z = v->z / l;
196 }
197
198 return vec;
199}
200
201static void 182static void
202_sphere_fini() 183_sphere_fini()
203{ 184{