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

This commit is contained in:
Michael Natterer 2018-05-11 16:22:42 +02:00
parent 7d64cf62c6
commit 628f654615
4 changed files with 3 additions and 51 deletions

View File

@ -150,35 +150,6 @@ gimp_pixel_fetcher_set_edge_mode (GimpPixelFetcher *pf,
pf->mode = mode; 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: * gimp_pixel_fetcher_get_pixel:
* @pf: a pointer to a previously initialized #GimpPixelFetcher. * @pf: a pointer to a previously initialized #GimpPixelFetcher.

View File

@ -56,9 +56,6 @@ void gimp_pixel_fetcher_destroy (GimpPixelFetcher *pf);
GIMP_DEPRECATED GIMP_DEPRECATED
void gimp_pixel_fetcher_set_edge_mode (GimpPixelFetcher *pf, void gimp_pixel_fetcher_set_edge_mode (GimpPixelFetcher *pf,
GimpPixelFetcherEdgeMode mode); GimpPixelFetcherEdgeMode mode);
GIMP_DEPRECATED
void gimp_pixel_fetcher_set_bg_color (GimpPixelFetcher *pf,
const GimpRGB *color);
GIMP_DEPRECATED GIMP_DEPRECATED
void gimp_pixel_fetcher_get_pixel (GimpPixelFetcher *pf, void gimp_pixel_fetcher_get_pixel (GimpPixelFetcher *pf,

View File

@ -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: * gimp_tile_cache_ntiles:
* @ntiles: number of tiles that should fit into the cache * @ntiles: number of tiles that should fit into the cache
@ -147,9 +133,9 @@ gimp_tile_cache_size (gulong kilobytes)
void void
gimp_tile_cache_ntiles (gulong ntiles) gimp_tile_cache_ntiles (gulong ntiles)
{ {
gimp_tile_cache_size ((ntiles * max_cache_size = (ntiles *
gimp_tile_width () * gimp_tile_width () *
gimp_tile_height () * 4 + 1023) / 1024); gimp_tile_height () * 4);
} }
void void

View File

@ -52,8 +52,6 @@ void gimp_tile_unref (GimpTile *tile,
GIMP_DEPRECATED GIMP_DEPRECATED
void gimp_tile_flush (GimpTile *tile); void gimp_tile_flush (GimpTile *tile);
GIMP_DEPRECATED
void gimp_tile_cache_size (gulong kilobytes);
GIMP_DEPRECATED GIMP_DEPRECATED
void gimp_tile_cache_ntiles (gulong ntiles); void gimp_tile_cache_ntiles (gulong ntiles);