From 1fd3950cda333fa8147ee92a659505978a471d70 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Thu, 12 Sep 2013 15:40:41 +0100 Subject: [PATCH] ecore_evas: Remove unused code. rot = rot % 360; while (rot < 0) rot += 360; it is guaranteed that rot is between 0 and 359. CID: 1039470, 1039471 --- src/lib/ecore_evas/ecore_evas.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c index f31819e..ac2becb 100644 --- a/src/lib/ecore_evas/ecore_evas.c +++ b/src/lib/ecore_evas/ecore_evas.c @@ -1203,7 +1203,6 @@ ecore_evas_rotation_set(Ecore_Evas *ee, int rot) } rot = rot % 360; while (rot < 0) rot += 360; - while (rot >= 360) rot -= 360; IFC(ee, fn_rotation_set) (ee, rot, 0); /* make sure everything gets redrawn */ evas_damage_rectangle_add(ee->evas, 0, 0, ee->w, ee->h); @@ -1222,7 +1221,6 @@ ecore_evas_rotation_with_resize_set(Ecore_Evas *ee, int rot) } rot = rot % 360; while (rot < 0) rot += 360; - while (rot >= 360) rot -= 360; IFC(ee, fn_rotation_set) (ee, rot, 1); /* make sure everything gets redrawn */ evas_damage_rectangle_add(ee->evas, 0, 0, ee->w, ee->h); -- 2.7.4