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
This commit is contained in:
Stefan Schmidt 2013-09-12 15:40:41 +01:00
parent d54bfd7e1d
commit 1fd3950cda
1 changed files with 0 additions and 2 deletions

View File

@ -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);