Remove unused function image_depth().

This commit is contained in:
David Capello 2012-02-11 23:00:01 -03:00
parent 1345919aaa
commit 9fc0309230
2 changed files with 0 additions and 13 deletions

View File

@ -86,17 +86,6 @@ void image_free(Image* image)
delete image;
}
int image_depth(Image* image)
{
switch (image->imgtype) {
case IMAGE_RGB: return 32;
case IMAGE_GRAYSCALE: return 16;
case IMAGE_INDEXED: return 8;
case IMAGE_BITMAP: return 1;
default: return -1;
}
}
int image_getpixel(const Image* image, int x, int y)
{
if ((x >= 0) && (y >= 0) && (x < image->w) && (y < image->h))

View File

@ -73,8 +73,6 @@ public:
void image_free(Image* image);
int image_depth(Image* image);
int image_getpixel(const Image* image, int x, int y);
void image_putpixel(Image* image, int x, int y, int color);
void image_putpen(Image* image, Pen* pen, int x, int y, int fg_color, int bg_color);