diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-04-07 03:21:25 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-04-07 03:21:25 +0200 |
commit | 6294585ac2dfe73654a9ac5965517219e4ea7ede (patch) | |
tree | 82523e3b737cf4303679beb7fba586b7dc9db63b /pdf/pdf_colorspace.c | |
parent | b3c8fbeb0dbb2c4b4ed767b7917ada9fa31b353a (diff) | |
download | mupdf-6294585ac2dfe73654a9ac5965517219e4ea7ede.tar.xz |
pdf: Purge unmaintained debug/log printing messages.
Diffstat (limited to 'pdf/pdf_colorspace.c')
-rw-r--r-- | pdf/pdf_colorspace.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/pdf/pdf_colorspace.c b/pdf/pdf_colorspace.c index 26be83d4..a7b04166 100644 --- a/pdf/pdf_colorspace.c +++ b/pdf/pdf_colorspace.c @@ -8,8 +8,6 @@ load_icc_based(fz_colorspace **csp, pdf_xref *xref, fz_obj *dict) { int n; - pdf_log_rsrc("load ICCBased\n"); - n = fz_to_int(fz_dict_gets(dict, "N")); switch (n) @@ -104,8 +102,6 @@ load_separation(fz_colorspace **csp, pdf_xref *xref, fz_obj *array) pdf_function *tint; int n; - pdf_log_rsrc("load Separation {\n"); - if (fz_is_array(nameobj)) n = fz_array_len(nameobj); else @@ -114,8 +110,6 @@ load_separation(fz_colorspace **csp, pdf_xref *xref, fz_obj *array) if (n > FZ_MAX_COLORS) return fz_throw("too many components in colorspace"); - pdf_log_rsrc("n = %d\n", n); - error = pdf_load_colorspace(&base, xref, baseobj); if (error) return fz_rethrow(error, "cannot load base colorspace (%d %d R)", fz_to_num(baseobj), fz_to_gen(baseobj)); @@ -136,8 +130,6 @@ load_separation(fz_colorspace **csp, pdf_xref *xref, fz_obj *array) cs->free_data = free_separation; cs->data = sep; - pdf_log_rsrc("}\n"); - *csp = cs; return fz_okay; } @@ -227,14 +219,10 @@ load_indexed(fz_colorspace **csp, pdf_xref *xref, fz_obj *array) fz_colorspace *base; int i, n; - pdf_log_rsrc("load Indexed {\n"); - error = pdf_load_colorspace(&base, xref, baseobj); if (error) return fz_rethrow(error, "cannot load base colorspace (%d %d R)", fz_to_num(baseobj), fz_to_gen(baseobj)); - pdf_log_rsrc("base %s\n", base->name); - idx = fz_malloc(sizeof(struct indexed)); idx->base = base; idx->high = fz_to_int(highobj); @@ -250,11 +238,7 @@ load_indexed(fz_colorspace **csp, pdf_xref *xref, fz_obj *array) if (fz_is_string(lookup) && fz_to_str_len(lookup) == n) { - unsigned char *buf; - - pdf_log_rsrc("string lookup\n"); - - buf = (unsigned char *) fz_to_str_buf(lookup); + unsigned char *buf = (unsigned char *) fz_to_str_buf(lookup); for (i = 0; i < n; i++) idx->lookup[i] = buf[i]; } @@ -262,8 +246,6 @@ load_indexed(fz_colorspace **csp, pdf_xref *xref, fz_obj *array) { fz_stream *file; - pdf_log_rsrc("stream lookup\n"); - error = pdf_open_stream(&file, xref, fz_to_num(lookup), fz_to_gen(lookup)); if (error) { @@ -286,8 +268,6 @@ load_indexed(fz_colorspace **csp, pdf_xref *xref, fz_obj *array) return fz_throw("cannot parse colorspace lookup table"); } - pdf_log_rsrc("}\n"); - *csp = cs; return fz_okay; } |