diff options
Diffstat (limited to 'source/pdf')
-rw-r--r-- | source/pdf/pdf-annot-edit.c | 1 | ||||
-rw-r--r-- | source/pdf/pdf-colorspace.c | 1 | ||||
-rw-r--r-- | source/pdf/pdf-device.c | 1 | ||||
-rw-r--r-- | source/pdf/pdf-function.c | 1 | ||||
-rw-r--r-- | source/pdf/pdf-layer.c | 1 | ||||
-rw-r--r-- | source/pdf/pdf-object.c | 1 | ||||
-rw-r--r-- | source/pdf/pdf-op-filter.c | 1 | ||||
-rw-r--r-- | source/pdf/pdf-op-run.c | 1 | ||||
-rw-r--r-- | source/pdf/pdf-pkcs7.c | 1 | ||||
-rw-r--r-- | source/pdf/pdf-repair.c | 1 | ||||
-rw-r--r-- | source/pdf/pdf-shade.c | 4 | ||||
-rw-r--r-- | source/pdf/pdf-write.c | 5 | ||||
-rw-r--r-- | source/pdf/pdf-xref.c | 2 |
13 files changed, 0 insertions, 21 deletions
diff --git a/source/pdf/pdf-annot-edit.c b/source/pdf/pdf-annot-edit.c index 09937c5e..fc6629c1 100644 --- a/source/pdf/pdf-annot-edit.c +++ b/source/pdf/pdf-annot-edit.c @@ -358,7 +358,6 @@ pdf_set_annot_interior_color(fz_context *ctx, pdf_annot *annot, int n, const flo pdf_set_annot_color_imp(ctx, annot, PDF_NAME_IC, n, color); } - int pdf_annot_quad_point_count(fz_context *ctx, pdf_annot *annot) { pdf_obj *quad_points = pdf_dict_get(ctx, annot->obj, PDF_NAME_QuadPoints); diff --git a/source/pdf/pdf-colorspace.c b/source/pdf/pdf-colorspace.c index 18a4aa17..bfdaf6e9 100644 --- a/source/pdf/pdf-colorspace.c +++ b/source/pdf/pdf-colorspace.c @@ -203,7 +203,6 @@ load_indexed(fz_context *ctx, pdf_document *doc, pdf_obj *array) static fz_colorspace * pdf_load_colorspace_imp(fz_context *ctx, pdf_document *doc, pdf_obj *obj) { - if (pdf_obj_marked(ctx, obj)) fz_throw(ctx, FZ_ERROR_GENERIC, "Recursion in colorspace definition"); diff --git a/source/pdf/pdf-device.c b/source/pdf/pdf-device.c index f2fd75fc..6c02377c 100644 --- a/source/pdf/pdf-device.c +++ b/source/pdf/pdf-device.c @@ -145,7 +145,6 @@ pdf_dev_stroke_state(fz_context *ctx, pdf_device *pdev, const fz_stroke_state *s for (i = 0; i < stroke_state->dash_len; i++) fz_buffer_printf(ctx, gs->buf, "%c%f", (i == 0 ? '[' : ' '), stroke_state->dash_list[i]); fz_buffer_printf(ctx, gs->buf, "]%f d\n", stroke_state->dash_phase); - } fz_drop_stroke_state(ctx, gs->stroke_state); gs->stroke_state = fz_keep_stroke_state(ctx, stroke_state); diff --git a/source/pdf/pdf-function.c b/source/pdf/pdf-function.c index b319dd97..db76ba4b 100644 --- a/source/pdf/pdf-function.c +++ b/source/pdf/pdf-function.c @@ -138,7 +138,6 @@ pdf_print_ps_stack(fz_context *ctx, fz_output *out, ps_stack *st) } fz_printf(ctx, out, "\n"); - } static void diff --git a/source/pdf/pdf-layer.c b/source/pdf/pdf-layer.c index fc29c9d3..d86f16af 100644 --- a/source/pdf/pdf-layer.c +++ b/source/pdf/pdf-layer.c @@ -79,7 +79,6 @@ pdf_count_layer_configs(fz_context *ctx, pdf_document *doc) return doc->ocg->num_configs; } - static int count_entries(fz_context *ctx, pdf_obj *obj) { diff --git a/source/pdf/pdf-object.c b/source/pdf/pdf-object.c index 8d2e2ae4..81a29bc7 100644 --- a/source/pdf/pdf-object.c +++ b/source/pdf/pdf-object.c @@ -523,7 +523,6 @@ pdf_objcmp(fz_context *ctx, pdf_obj *a, pdf_obj *b) return 1; } return 0; - } return 1; } diff --git a/source/pdf/pdf-op-filter.c b/source/pdf/pdf-op-filter.c index f5a0958d..e3cbf4ce 100644 --- a/source/pdf/pdf-op-filter.c +++ b/source/pdf/pdf-op-filter.c @@ -1122,7 +1122,6 @@ pdf_drop_filter_processor(fz_context *ctx, pdf_processor *proc) pdf_processor * pdf_new_filter_processor(fz_context *ctx, pdf_processor *chain, pdf_document *doc, pdf_obj *old_rdb, pdf_obj *new_rdb) { - pdf_filter_processor *proc = pdf_new_processor(ctx, sizeof *proc); { proc->super.drop_processor = pdf_drop_filter_processor; diff --git a/source/pdf/pdf-op-run.c b/source/pdf/pdf-op-run.c index 29031657..a3ea895d 100644 --- a/source/pdf/pdf-op-run.c +++ b/source/pdf/pdf-op-run.c @@ -530,7 +530,6 @@ pdf_show_image(fz_context *ctx, pdf_run_processor *pr, fz_image *image) if (!image->colorspace) { - switch (gstate->fill.kind) { case PDF_MAT_NONE: diff --git a/source/pdf/pdf-pkcs7.c b/source/pdf/pdf-pkcs7.c index fabe796f..b2139146 100644 --- a/source/pdf/pdf-pkcs7.c +++ b/source/pdf/pdf-pkcs7.c @@ -694,7 +694,6 @@ int pdf_check_signature(fz_context *ctx, pdf_document *doc, pdf_widget *widget, res = 0; fz_strlcpy(ebuf, "Not signed", ebufsize); } - } fz_always(ctx) { diff --git a/source/pdf/pdf-repair.c b/source/pdf/pdf-repair.c index a68800d0..88c0be55 100644 --- a/source/pdf/pdf-repair.c +++ b/source/pdf/pdf-repair.c @@ -508,7 +508,6 @@ pdf_repair_xref(fz_context *ctx, pdf_document *doc) num = 0; gen = 0; } - } if (listlen == 0) diff --git a/source/pdf/pdf-shade.c b/source/pdf/pdf-shade.c index dd0a9e0a..1689fcfc 100644 --- a/source/pdf/pdf-shade.c +++ b/source/pdf/pdf-shade.c @@ -252,7 +252,6 @@ pdf_load_mesh_params(fz_context *ctx, pdf_document *doc, fz_shade *shade, pdf_ob static void pdf_load_type4_shade(fz_context *ctx, pdf_document *doc, fz_shade *shade, pdf_obj *dict, int funcs, fz_function **func) { - pdf_load_mesh_params(ctx, doc, shade, dict); if (funcs > 0) @@ -264,7 +263,6 @@ pdf_load_type4_shade(fz_context *ctx, pdf_document *doc, fz_shade *shade, pdf_ob static void pdf_load_type5_shade(fz_context *ctx, pdf_document *doc, fz_shade *shade, pdf_obj *dict, int funcs, fz_function **func) { - pdf_load_mesh_params(ctx, doc, shade, dict); if (funcs > 0) @@ -278,7 +276,6 @@ pdf_load_type5_shade(fz_context *ctx, pdf_document *doc, fz_shade *shade, pdf_ob static void pdf_load_type6_shade(fz_context *ctx, pdf_document *doc, fz_shade *shade, pdf_obj *dict, int funcs, fz_function **func) { - pdf_load_mesh_params(ctx, doc, shade, dict); if (funcs > 0) @@ -290,7 +287,6 @@ pdf_load_type6_shade(fz_context *ctx, pdf_document *doc, fz_shade *shade, pdf_ob static void pdf_load_type7_shade(fz_context *ctx, pdf_document *doc, fz_shade *shade, pdf_obj *dict, int funcs, fz_function **func) { - pdf_load_mesh_params(ctx, doc, shade, dict); if (funcs > 0) diff --git a/source/pdf/pdf-write.c b/source/pdf/pdf-write.c index 645d0539..94379f4e 100644 --- a/source/pdf/pdf-write.c +++ b/source/pdf/pdf-write.c @@ -160,7 +160,6 @@ page_objects_create(fz_context *ctx) po->cap = initial_cap; po->len = 0; return po; - } static void @@ -931,7 +930,6 @@ static void page_objects_list_renumber(pdf_write_state *opts) static void mark_all(fz_context *ctx, pdf_document *doc, pdf_write_state *opts, pdf_obj *val, int flag, int page) { - if (pdf_mark_obj(ctx, val)) return; @@ -981,7 +979,6 @@ mark_all(fz_context *ctx, pdf_document *doc, pdf_write_state *opts, pdf_obj *val static int mark_pages(fz_context *ctx, pdf_document *doc, pdf_write_state *opts, pdf_obj *val, int pagenum) { - if (pdf_mark_obj(ctx, val)) return pagenum; @@ -1593,7 +1590,6 @@ static void addhexfilter(fz_context *ctx, pdf_document *doc, pdf_obj *dict) pdf_dict_put(ctx, dict, PDF_NAME_Filter, f); if (dp) pdf_dict_put(ctx, dict, PDF_NAME_DecodeParms, dp); - } fz_always(ctx) { @@ -1602,7 +1598,6 @@ static void addhexfilter(fz_context *ctx, pdf_document *doc, pdf_obj *dict) } fz_catch(ctx) fz_rethrow(ctx); - } static fz_buffer *deflatebuf(fz_context *ctx, unsigned char *p, size_t n) diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c index b20aaee4..88182adf 100644 --- a/source/pdf/pdf-xref.c +++ b/source/pdf/pdf-xref.c @@ -1812,7 +1812,6 @@ pdf_obj_read(fz_context *ctx, pdf_document *doc, fz_off_t *offset, int *nump, pd static void pdf_load_hinted_page(fz_context *ctx, pdf_document *doc, int pagenum) { - if (!doc->hints_loaded || !doc->linear_page_refs) return; @@ -1836,7 +1835,6 @@ pdf_load_hinted_page(fz_context *ctx, pdf_document *doc, int pagenum) fz_rethrow_if(ctx, FZ_ERROR_TRYLATER); /* Silently swallow the error and proceed as normal */ } - } static int |