diff options
author | Sungtaek Hong <sth253.hong@samsung.com> | 2016-09-21 17:40:53 +0900 |
---|---|---|
committer | Hermet Park <hermet@hermet.pe.kr> | 2016-09-21 17:41:47 +0900 |
commit | 57c4d83b2e0de0a1a9e939f7762c1961e47cf74c (patch) | |
tree | 8e8c689532d9aba9cf94086c145f0bcb0da95707 | |
parent | 3689a803dbfe1297e706d2fbfde239d641652de1 (diff) | |
download | efl-57c4d83b2e0de0a1a9e939f7762c1961e47cf74c.tar.gz |
evas: remove unnecessary check for clip coords.
Summary: (dst_clip_w <= 0 || dst_clip_h <= 0) is already checked.
Reviewers: jpeg, cedric, Hermet
Reviewed By: Hermet
Subscribers: conr2d
Differential Revision: https://phab.enlightenment.org/D4303
-rw-r--r-- | src/lib/evas/common/evas_scale_sample.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/evas/common/evas_scale_sample.c b/src/lib/evas/common/evas_scale_sample.c index 008e43dea2..71a805ee2f 100644 --- a/src/lib/evas/common/evas_scale_sample.c +++ b/src/lib/evas/common/evas_scale_sample.c @@ -553,7 +553,6 @@ scale_rgba_in_to_out_clip_sample_internal(RGBA_Image *src, RGBA_Image *dst, } if (dst_region_w <= 0) return EINA_FALSE; if (src_region_w <= 0) return EINA_FALSE; - if (dst_clip_w <= 0) return EINA_FALSE; if (dst_clip_x >= dst_w) return EINA_FALSE; if (dst_clip_x < dst_region_x) { @@ -582,7 +581,6 @@ scale_rgba_in_to_out_clip_sample_internal(RGBA_Image *src, RGBA_Image *dst, } if (dst_region_h <= 0) return EINA_FALSE; if (src_region_h <= 0) return EINA_FALSE; - if (dst_clip_h <= 0) return EINA_FALSE; if (dst_clip_y >= dst_h) return EINA_FALSE; if (dst_clip_y < dst_region_y) { |