From 9fc030923016b25a69be17a0d664e91c4a4f44df Mon Sep 17 00:00:00 2001 From: David Capello Date: Sat, 11 Feb 2012 23:00:01 -0300 Subject: [PATCH] Remove unused function image_depth(). --- src/raster/image.cpp | 11 ----------- src/raster/image.h | 2 -- 2 files changed, 13 deletions(-) diff --git a/src/raster/image.cpp b/src/raster/image.cpp index e51d0a750..938726292 100644 --- a/src/raster/image.cpp +++ b/src/raster/image.cpp @@ -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)) diff --git a/src/raster/image.h b/src/raster/image.h index f12284783..4ee8f5c5f 100644 --- a/src/raster/image.h +++ b/src/raster/image.h @@ -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);