[gimp] app: remove double identity check from raster brush transform funcs



commit 1c25a2f0bff17fd37ed05fa8d602232263c19c9b
Author: Ell <ell_se yahoo com>
Date:   Wed Jun 14 15:43:24 2017 -0400

    app: remove double identity check from raster brush transform funcs
    
    The identity parameter checks added to the raster brush
    transformation functions in the previous commit are unnecessary,
    since we're already testing for the identity matrix.  Remove them.

 app/core/gimpbrush-transform.c |   16 ----------------
 1 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/app/core/gimpbrush-transform.c b/app/core/gimpbrush-transform.c
index 88b038c..f8af255 100644
--- a/app/core/gimpbrush-transform.c
+++ b/app/core/gimpbrush-transform.c
@@ -176,14 +176,6 @@ gimp_brush_real_transform_mask (GimpBrush *brush,
 
   source = gimp_brush_get_mask (brush);
 
-  if (scale        == 1.0 &&
-      aspect_ratio == 0.0 &&
-      angle        == 0.0 &&
-      hardness     == 1.0)
-    {
-      return gimp_temp_buf_copy (source);
-    }
-
   src_width  = gimp_brush_get_width  (brush);
   src_height = gimp_brush_get_height (brush);
 
@@ -475,14 +467,6 @@ gimp_brush_real_transform_pixmap (GimpBrush *brush,
 
   source = gimp_brush_get_pixmap (brush);
 
-  if (scale        == 1.0 &&
-      aspect_ratio == 0.0 &&
-      angle        == 0.0 &&
-      hardness     == 1.0)
-    {
-      return gimp_temp_buf_copy (source);
-    }
-
   src_width  = gimp_brush_get_width  (brush);
   src_height = gimp_brush_get_height (brush);
 


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