forked from enlightenment/efl
xcf: Remove dead code
We already make sure amount <= 16 two lines above, so no need to check again. Fixes CID 63741, CID 63742 and CID 63743
This commit is contained in:
parent
659c3346ce
commit
cad99f07d4
|
@ -622,7 +622,7 @@ xcf_load_image_props(void)
|
|||
{
|
||||
amount = (16 < prop_size ? 16 : prop_size);
|
||||
image->cp += xcf_read_int8(image->file, buf, amount);
|
||||
prop_size -= (16 < amount ? 16 : amount);
|
||||
prop_size -= amount;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -735,7 +735,7 @@ xcf_load_layer_props(Layer *layer)
|
|||
{
|
||||
amount = (16 < prop_size ? 16 : prop_size);
|
||||
image->cp += xcf_read_int8 (image->file, buf, amount);
|
||||
prop_size -= (16 < amount ? 16 : amount);
|
||||
prop_size -= amount;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -1005,7 +1005,7 @@ xcf_load_channel_props(Layer *layer)
|
|||
{
|
||||
amount = (16 < prop_size ? 16 : prop_size);
|
||||
image->cp += xcf_read_int8(image->file, buf, amount);
|
||||
prop_size -= (16 < amount ? 16 : amount);
|
||||
prop_size -= amount;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue