summaryrefslogtreecommitdiff
path: root/src/lib/evas/include/evas_3d_utils.h
diff options
context:
space:
mode:
authorperepelits.m <perepelits.m@samsung.com>2015-09-21 23:19:57 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-09-21 23:20:02 +0200
commit64a7b3d44f3f5d917943ac22c3af1221f1df7fdf (patch)
tree5205be8b77b73f7cee5f6d4da316557a10501c7f /src/lib/evas/include/evas_3d_utils.h
parentafe6f5c3a1adbfc3f1b8ab828021accc55b29341 (diff)
evas: remove unused variable in evas_tangent_space_get.
Summary: Firstly it was the main point of in CID1323089 from Coverity, but this variable is unused. So I've deleted it. CID1323089 Reviewers: raster, Hermet, cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3067 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/evas/include/evas_3d_utils.h')
-rw-r--r--src/lib/evas/include/evas_3d_utils.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/lib/evas/include/evas_3d_utils.h b/src/lib/evas/include/evas_3d_utils.h
index 8591d97a3c..ed1e91f975 100644
--- a/src/lib/evas/include/evas_3d_utils.h
+++ b/src/lib/evas/include/evas_3d_utils.h
@@ -2829,14 +2829,6 @@ evas_tangent_space_get(float *data, float *tex_data, float *normal_data, unsigne
2829 return; 2829 return;
2830 } 2830 }
2831 2831
2832 unsigned short int *tmp_index = (unsigned short int*) malloc((vertex_count) * sizeof(unsigned short int));
2833
2834 if (tmp_index == NULL)
2835 {
2836 ERR("Failed to allocate memory %d %s", __LINE__, __FILE__);
2837 return;
2838 }
2839
2840 float *tmp_tangent = (float*) malloc((3 * vertex_count) * sizeof(float)); 2832 float *tmp_tangent = (float*) malloc((3 * vertex_count) * sizeof(float));
2841 if (tmp_tangent == NULL) 2833 if (tmp_tangent == NULL)
2842 { 2834 {
@@ -2934,7 +2926,6 @@ evas_tangent_space_get(float *data, float *tex_data, float *normal_data, unsigne
2934 2926
2935 2927
2936 memcpy(*tangent, tmp_tangent, (3 * vertex_count) * sizeof(float)); 2928 memcpy(*tangent, tmp_tangent, (3 * vertex_count) * sizeof(float));
2937 free(tmp_index);
2938 free(tmp_tangent); 2929 free(tmp_tangent);
2939 2930
2940 return; 2931 return;