diff --git a/app/paint-funcs/paint-funcs-generic.h b/app/paint-funcs/paint-funcs-generic.h index 7a56e8f42d..b11a61fca6 100644 --- a/app/paint-funcs/paint-funcs-generic.h +++ b/app/paint-funcs/paint-funcs-generic.h @@ -189,29 +189,6 @@ scale_pixels (const guchar *src, } } -inline void -add_alpha_pixels (const guchar *src, - guchar *dest, - guint length, - guint bytes) -{ - const guint alpha = bytes + 1; - - while (length --) - { - guint b; - - for (b = 0; b < bytes; b++) - dest[b] = src[b]; - - dest[b] = OPAQUE_OPACITY; - - src += bytes; - dest += alpha; - } -} - - inline void gray_to_rgb_pixels (const guchar *src, guchar *dest, diff --git a/app/paint-funcs/paint-funcs.c b/app/paint-funcs/paint-funcs.c index 3887c79f5e..041ce1fff3 100644 --- a/app/paint-funcs/paint-funcs.c +++ b/app/paint-funcs/paint-funcs.c @@ -1714,31 +1714,6 @@ copy_region (PixelRegion *src, } -void -add_alpha_region (PixelRegion *src, - PixelRegion *dest) -{ - gpointer pr; - - for (pr = pixel_regions_register (2, src, dest); - pr != NULL; - pr = pixel_regions_process (pr)) - { - const guchar *s = src->data; - guchar *d = dest->data; - gint h = src->h; - - while (h --) - { - add_alpha_pixels (s, d, src->w, src->bytes); - - s += src->rowstride; - d += dest->rowstride; - } - } -} - - void convolve_region (PixelRegion *srcR, PixelRegion *destR, diff --git a/app/paint-funcs/paint-funcs.h b/app/paint-funcs/paint-funcs.h index 717e2b8e4e..583b5e9018 100644 --- a/app/paint-funcs/paint-funcs.h +++ b/app/paint-funcs/paint-funcs.h @@ -33,11 +33,6 @@ void scale_pixels (const guchar *src, guint length, gint scale); -void add_alpha_pixels (const guchar *src, - guchar *dest, - guint length, - guint bytes); - void gray_to_rgb_pixels (const guchar *src, guchar *dest, guint length, @@ -266,9 +261,6 @@ void blend_region (PixelRegion *src1, void copy_region (PixelRegion *src, PixelRegion *dest); -void add_alpha_region (PixelRegion *src, - PixelRegion *dest); - void convolve_region (PixelRegion *srcR, PixelRegion *destR, const gfloat *matrix,