From f8e76f1324d379e9231d89757344683b07299969 Mon Sep 17 00:00:00 2001 From: hermet Date: Tue, 29 Nov 2011 00:09:56 +0000 Subject: [PATCH] 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 --- src/bin/test_flip_page.c | 2 -- src/lib/elm_flip.c | 2 -- 2 files changed, 4 deletions(-) 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; -- 2.7.4