Commit c24710b2 authored by Michael Natterer's avatar Michael Natterer 😴

app: remove swap_region() and its helper function

parent 904a35d7
......@@ -269,23 +269,6 @@ replace_pixels (const guchar *src1,
}
}
inline void
swap_pixels (guchar *src,
guchar *dest,
guint length)
{
while (length--)
{
guchar tmp = *dest;
*dest = *src;
*src = tmp;
src++;
dest++;
}
}
inline void
scale_pixels (const guchar *src,
guchar *dest,
......
......@@ -3061,31 +3061,6 @@ border_region (PixelRegion *src,
g_free (density);
}
void
swap_region (PixelRegion *src,
PixelRegion *dest)
{
gpointer pr;
for (pr = pixel_regions_register (2, src, dest);
pr != NULL;
pr = pixel_regions_process (pr))
{
guchar *s = src->data;
guchar *d = dest->data;
gint pixels = src->w * src->bytes;
gint h = src->h;
while (h--)
{
swap_pixels (s, d, pixels);
s += src->rowstride;
d += dest->rowstride;
}
}
}
/* Computes whether pixels in `buf[1]' have neighbouring pixels that are
unselected. Put result in `transition'. */
......
......@@ -33,10 +33,6 @@ void blend_pixels (const guchar *src1,
guint w,
guint bytes);
void swap_pixels (guchar *src,
guchar *dest,
guint length);
void scale_pixels (const guchar *src,
guchar *dest,
guint length,
......@@ -313,9 +309,6 @@ void smooth_region (PixelRegion *region);
void erode_region (PixelRegion *region);
void dilate_region (PixelRegion *region);
void swap_region (PixelRegion *src,
PixelRegion *dest);
/* Apply a mask to an image's alpha channel */
void apply_mask_to_region (PixelRegion *src,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment