From: hermet Date: Tue, 29 Nov 2011 00:09:56 +0000 (+0000) Subject: elementary/flip - patched by PRINCE KUMAR DUBEY X-Git-Tag: REL_F_I9500_20120323_1~17^2~1246 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8e76f1324d379e9231d89757344683b07299969;p=framework%2Fuifw%2Felementary.git elementary/flip - patched by PRINCE KUMAR DUBEY Hi, On behalf of Rajeev Ranjan, I am submitting the elm_flip patch. Change Log: a. Removed unnecessary comparison and assignment from the function _state_update inside file src/bin/test_flip_page.c. The comparison test will always be failed. Hence the assignment which was unreachable is removed. b. Removed unnecessary comparison and assignment from the function _state_update inside file src/lib/elm_flip.c. The comparison test will always be failed. Hence the assignment which was unreachable is removed. Please review it. I'd appreciate any comments on this. Thank you, git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@65664 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/bin/test_flip_page.c b/src/bin/test_flip_page.c index 5537ea1..e823f64 100644 --- a/src/bin/test_flip_page.c +++ b/src/bin/test_flip_page.c @@ -446,8 +446,6 @@ _state_update(State *st) nw = 16; nh = 16; - if (nw < 1) nw = 1; - if (nh < 1) nh = 1; gszw = w / nw; gszh = h / nh; if (gszw < 4) gszw = 4; diff --git a/src/lib/elm_flip.c b/src/lib/elm_flip.c index 3997f0d..d0cd137 100644 --- a/src/lib/elm_flip.c +++ b/src/lib/elm_flip.c @@ -550,8 +550,6 @@ _state_update(Widget_Data *st) nw = 16; nh = 16; - if (nw < 1) nw = 1; - if (nh < 1) nh = 1; gszw = w / nw; gszh = h / nh; if (gszw < 4) gszw = 4;