From 80328bfd9c7d650fc85a78828be4bbc049295272 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 1 Feb 2012 11:05:10 +0000 Subject: Fix Bug 692830; remove unnecessary tests. Remove remnants of old tests that are no longer required. --- pdf/pdf_function.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pdf/pdf_function.c b/pdf/pdf_function.c index 34b419e5..1dda0e6e 100644 --- a/pdf/pdf_function.c +++ b/pdf/pdf_function.c @@ -1216,8 +1216,8 @@ load_stitching_func(pdf_function *func, pdf_document *xref, fz_obj *dict) if (!fz_is_array(obj)) fz_throw(ctx, "stitching function has no bounds"); { - if (!fz_is_array(obj) || fz_array_len(obj) != k - 1) - fz_throw(ctx, "malformed /Bounds (not array or wrong length)"); + if (fz_array_len(obj) != k - 1) + fz_throw(ctx, "malformed /Bounds (wrong length)"); for (i = 0; i < k-1; i++) { @@ -1238,7 +1238,7 @@ load_stitching_func(pdf_function *func, pdf_document *xref, fz_obj *dict) if (!fz_is_array(obj)) fz_throw(ctx, "stitching function is missing encoding"); { - if (!fz_is_array(obj) || fz_array_len(obj) != k * 2) + if (fz_array_len(obj) != k * 2) fz_throw(ctx, "malformed /Encode"); for (i = 0; i < k; i++) { -- cgit v1.2.3