canvas map: code refactoring.

remove dead code that unreachable looping.
This commit is contained in:
Hermet Park 2019-08-26 19:23:43 +09:00
parent 03e12fe148
commit 42a7aae58c
1 changed files with 3 additions and 4 deletions

View File

@ -83,7 +83,7 @@ _map_horiz_coverage_calc(AALine *spans, int eidx, int y, int x, int x2)
static void
_map_aa_edge_calc_internal(AALine *spans, int eidx, int ystart, int yend)
{
int y;
int y = 0;
Evas_Coord_Point p_edge = {-1, -1}; //previous edge point
Evas_Coord_Point edge_diff = {0, 0}; //temporary used for point distance
@ -114,12 +114,11 @@ do \
yend -= ystart;
//Find Start Edge
for (y = 0; y < yend; y++)
//Start Edge
if (y < yend)
{
p_edge.x = spans[y].x[eidx];
p_edge.y = y;
break;
}
//Calculates AA Edges