[gimp/goat-invasion: 84/325] app: remove shade_region()



commit 7f5fb8f7067d35232c6ca77750ab8d9592275c1b
Author: Michael Natterer <mitch gimp org>
Date:   Fri Mar 16 18:56:12 2012 +0100

    app: remove shade_region()

 app/paint-funcs/paint-funcs.c |   20 --------------------
 app/paint-funcs/paint-funcs.h |    5 -----
 2 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/app/paint-funcs/paint-funcs.c b/app/paint-funcs/paint-funcs.c
index 1657198..eed7bdf 100644
--- a/app/paint-funcs/paint-funcs.c
+++ b/app/paint-funcs/paint-funcs.c
@@ -1865,26 +1865,6 @@ blend_region (PixelRegion *src1,
 
 
 void
-shade_region (PixelRegion *src,
-              PixelRegion *dest,
-              guchar      *color,
-              guchar       blend)
-{
-  const guchar *s = src->data;
-  guchar       *d = dest->data;
-  gint          h = src->h;
-
-  while (h --)
-    {
-      blend_pixels (s, d, color, blend, src->w, src->bytes);
-
-      s += src->rowstride;
-      d += dest->rowstride;
-    }
-}
-
-
-void
 copy_region (PixelRegion *src,
              PixelRegion *dest)
 {
diff --git a/app/paint-funcs/paint-funcs.h b/app/paint-funcs/paint-funcs.h
index a365ffb..dc602b1 100644
--- a/app/paint-funcs/paint-funcs.h
+++ b/app/paint-funcs/paint-funcs.h
@@ -338,11 +338,6 @@ void  blend_region                        (PixelRegion *src1,
                                            PixelRegion *dest,
                                            guchar       blend);
 
-void  shade_region                        (PixelRegion *src,
-                                           PixelRegion *dest,
-                                           guchar      *color,
-                                           guchar       blend);
-
 void  copy_region                         (PixelRegion *src,
                                            PixelRegion *dest);
 



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