diff options
-rw-r--r-- | include/mupdf/fitz/colorspace.h | 6 | ||||
-rw-r--r-- | source/fitz/colorspace.c | 15 |
2 files changed, 0 insertions, 21 deletions
diff --git a/include/mupdf/fitz/colorspace.h b/include/mupdf/fitz/colorspace.h index b1b82999..7676413a 100644 --- a/include/mupdf/fitz/colorspace.h +++ b/include/mupdf/fitz/colorspace.h @@ -17,12 +17,6 @@ enum { FZ_MAX_COLORS = 32 }; typedef struct fz_colorspace_s fz_colorspace; /* - fz_lookup_device_colorspace: Find a standard colorspace based upon - it's name. -*/ -fz_colorspace *fz_lookup_device_colorspace(fz_context *ctx, char *name); - -/* fz_colorspace_is_indexed: Return true, iff a given colorspace is indexed. */ diff --git a/source/fitz/colorspace.c b/source/fitz/colorspace.c index f697cd44..026953cb 100644 --- a/source/fitz/colorspace.c +++ b/source/fitz/colorspace.c @@ -235,21 +235,6 @@ fz_device_cmyk(fz_context *ctx) return ctx->colorspace->cmyk; } -fz_colorspace * -fz_lookup_device_colorspace(fz_context *ctx, char *name) -{ - if (!strcmp(name, "DeviceGray")) - return fz_device_gray(ctx); - if (!strcmp(name, "DeviceRGB")) - return fz_device_rgb(ctx); - if (!strcmp(name, "DeviceBGR")) - return fz_device_bgr(ctx); - if (!strcmp(name, "DeviceCMYK")) - return fz_device_cmyk(ctx); - assert(!"unknown device colorspace"); - return NULL; -} - void fz_set_device_gray(fz_context *ctx, fz_colorspace *cs) { |