[gtk/wip/baedert/for-master: 2/4] GskTransform: Remove useless fmod check



commit 7d59195224fa8bf7919280a1b8a271d56bdcff93
Author: Timm Bäder <mail baedert org>
Date:   Sun Feb 2 13:21:36 2020 +0100

    GskTransform: Remove useless fmod check
    
    All angles are in the [0; 360[ range

 gsk/gsktransform.c | 3 ---
 1 file changed, 3 deletions(-)
---
diff --git a/gsk/gsktransform.c b/gsk/gsktransform.c
index f116b79acd..b474ec4114 100644
--- a/gsk/gsktransform.c
+++ b/gsk/gsktransform.c
@@ -751,9 +751,6 @@ gsk_rotate_transform_apply_2d (GskTransform *transform,
   GskRotateTransform *self = (GskRotateTransform *) transform;
   float s, c, xx, xy, yx, yy;
 
-  if (fmodf (self->angle, 360.0f) == 0.0)
-    return;
-
   _sincos (self->angle, &s, &c);
 
   xx =  c * *out_xx + s * *out_xy;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]