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>
This commit is contained in:
perepelits.m 2015-09-21 23:19:57 +02:00 committed by Cedric BAIL
parent afe6f5c3a1
commit 64a7b3d44f
1 changed files with 0 additions and 9 deletions

View File

@ -2829,14 +2829,6 @@ evas_tangent_space_get(float *data, float *tex_data, float *normal_data, unsigne
return;
}
unsigned short int *tmp_index = (unsigned short int*) malloc((vertex_count) * sizeof(unsigned short int));
if (tmp_index == NULL)
{
ERR("Failed to allocate memory %d %s", __LINE__, __FILE__);
return;
}
float *tmp_tangent = (float*) malloc((3 * vertex_count) * sizeof(float));
if (tmp_tangent == NULL)
{
@ -2934,7 +2926,6 @@ evas_tangent_space_get(float *data, float *tex_data, float *normal_data, unsigne
memcpy(*tangent, tmp_tangent, (3 * vertex_count) * sizeof(float));
free(tmp_index);
free(tmp_tangent);
return;