Commit 628f6546 authored by Michael Natterer's avatar Michael Natterer 😴

libgimp: remove some more cruft that is not used any longer

parent 7d64cf62
......@@ -150,35 +150,6 @@ gimp_pixel_fetcher_set_edge_mode (GimpPixelFetcher *pf,
pf->mode = mode;
}
/**
* gimp_pixel_fetcher_set_bg_color:
* @pf: a pointer to a previously initialized #GimpPixelFetcher.
* @color: the color to be used as bg color.
*
* Change the background color of a previously initialized pixel region.
**/
void
gimp_pixel_fetcher_set_bg_color (GimpPixelFetcher *pf,
const GimpRGB *color)
{
g_return_if_fail (pf != NULL);
g_return_if_fail (color != NULL);
switch (pf->img_bpp)
{
case 2: pf->bg_color[1] = 255;
case 1:
pf->bg_color[0] = gimp_rgb_luminance_uchar (color);
break;
case 4: pf->bg_color[3] = 255;
case 3:
gimp_rgb_get_uchar (color,
pf->bg_color, pf->bg_color + 1, pf->bg_color + 2);
break;
}
}
/**
* gimp_pixel_fetcher_get_pixel:
* @pf: a pointer to a previously initialized #GimpPixelFetcher.
......
......@@ -56,9 +56,6 @@ void gimp_pixel_fetcher_destroy (GimpPixelFetcher *pf);
GIMP_DEPRECATED
void gimp_pixel_fetcher_set_edge_mode (GimpPixelFetcher *pf,
GimpPixelFetcherEdgeMode mode);
GIMP_DEPRECATED
void gimp_pixel_fetcher_set_bg_color (GimpPixelFetcher *pf,
const GimpRGB *color);
GIMP_DEPRECATED
void gimp_pixel_fetcher_get_pixel (GimpPixelFetcher *pf,
......
......@@ -116,20 +116,6 @@ gimp_tile_flush (GimpTile *tile)
}
}
/**
* gimp_tile_cache_size:
* @kilobytes: new cache size in kilobytes
*
* Sets the size of the tile cache on the plug-in side. The tile cache
* is used to reduce the number of tiles exchanged between the GIMP core
* and the plug-in. See also gimp_tile_cache_ntiles().
**/
void
gimp_tile_cache_size (gulong kilobytes)
{
max_cache_size = kilobytes * 1024;
}
/**
* gimp_tile_cache_ntiles:
* @ntiles: number of tiles that should fit into the cache
......@@ -147,9 +133,9 @@ gimp_tile_cache_size (gulong kilobytes)
void
gimp_tile_cache_ntiles (gulong ntiles)
{
gimp_tile_cache_size ((ntiles *
gimp_tile_width () *
gimp_tile_height () * 4 + 1023) / 1024);
max_cache_size = (ntiles *
gimp_tile_width () *
gimp_tile_height () * 4);
}
void
......
......@@ -52,8 +52,6 @@ void gimp_tile_unref (GimpTile *tile,
GIMP_DEPRECATED
void gimp_tile_flush (GimpTile *tile);
GIMP_DEPRECATED
void gimp_tile_cache_size (gulong kilobytes);
GIMP_DEPRECATED
void gimp_tile_cache_ntiles (gulong ntiles);
......
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