Branch: Tag:

2015-05-08

2015-05-08 10:31:43 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Image.Layers: Removed some dead code. Fixes [CID 742491].

The case of l != NULL has been handled early in img_lay_stroke(),
so l is always NULL in the later part of the function.

2608:    {    while (len>SNUMPIXS)    { -  (ly->row_func)(s,l?l:ly->sfill,d,sa,NULL,da, -  SNUMPIXS,ly->alpha_value); +  (ly->row_func)(s, ly->sfill, d, sa, NULL, da, +  SNUMPIXS, ly->alpha_value);    s+=SNUMPIXS; d+=SNUMPIXS;    sa+=SNUMPIXS;da+=SNUMPIXS; -  if (l) l+=SNUMPIXS; +     len-=SNUMPIXS;    }    if (len) -  (ly->row_func)(s,l?l:ly->sfill,d,sa,NULL,da,len,ly->alpha_value); +  (ly->row_func)(s, ly->sfill, d, sa, NULL, da, len, ly->alpha_value);    }    else    {
2624:       while (len>SNUMPIXS)    { -  (ly->row_func)(s,l?l:ly->sfill,d,sa,la?la:ly->sfill_alpha,da, -  SNUMPIXS,ly->alpha_value); +  (ly->row_func)(s, ly->sfill, d, sa, la?la: ly->sfill_alpha, da, +  SNUMPIXS, ly->alpha_value);    s+=SNUMPIXS; d+=SNUMPIXS;    sa+=SNUMPIXS; da+=SNUMPIXS; -  if (l) l+=SNUMPIXS; +     if (la) la+=SNUMPIXS;    len-=SNUMPIXS;    }    if (len) -  (ly->row_func)(s,l?l:ly->sfill,d,sa,la?la:ly->sfill_alpha, -  da,len,ly->alpha_value); +  (ly->row_func)(s, ly->sfill, d, sa, la?la: ly->sfill_alpha, +  da, len, ly->alpha_value);    }   }