summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-05-10 12:50:09 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-05-13 11:42:00 +0200
commitc79c663a424151c9ffd6ca8b947f3cc605cd921f (patch)
tree59729ec38915e096f581200b326d6f231d01cf2d /source
parent21116fe869b3e377bc4560597b54eff3c3eacfdf (diff)
downloadmupdf-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.
Diffstat (limited to 'source')
-rw-r--r--source/fitz/colorspace.c15
1 files changed, 0 insertions, 15 deletions
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)
{