diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-05-10 12:50:09 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-05-13 11:42:00 +0200 |
commit | c79c663a424151c9ffd6ca8b947f3cc605cd921f (patch) | |
tree | 59729ec38915e096f581200b326d6f231d01cf2d | |
parent | 21116fe869b3e377bc4560597b54eff3c3eacfdf (diff) | |
download | mupdf-c79c663a424151c9ffd6ca8b947f3cc605cd921f.tar.xz |
Remove fz_lookup_device_colorspace().
It is not used by mupdf itself and was added in commit
9915a386ea1dab21c5bbd4a0c8012dd13dbda301 to make it easier for
sumatrapdf, but sumatrapdf has stopped using the interface.
-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) { |