diff options
author | Sebastian Dransfeld <sd@tango.flipp.net> | 2014-10-28 10:12:40 +0100 |
---|---|---|
committer | Sebastian Dransfeld <sd@tango.flipp.net> | 2014-10-31 12:59:51 +0100 |
commit | ee3ed90722e1f481f9c43aa80411f40d9373b96d (patch) | |
tree | c93fdc0e6464247cc21674bb1f9a1fe69d20f70e | |
parent | ba26c1ec5f36372dd551a878653fec2c6513c9c4 (diff) | |
download | evas_generic_loaders-ee3ed90722e1f481f9c43aa80411f40d9373b96d.tar.gz |
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
-rw-r--r-- | src/bin/xcf/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/xcf/main.c b/src/bin/xcf/main.c index 70ade8c..48f2751 100644 --- a/src/bin/xcf/main.c +++ b/src/bin/xcf/main.c @@ -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; |