summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-02-01 11:05:10 +0000
committerRobin Watts <robin.watts@artifex.com>2012-02-01 11:05:10 +0000
commit80328bfd9c7d650fc85a78828be4bbc049295272 (patch)
tree9b335f920829d3c6ffdc9205878913c4cd663ed9
parentd36ddbb53507e45a04ef68b82e77bc224149ae4a (diff)
downloadmupdf-80328bfd9c7d650fc85a78828be4bbc049295272.tar.xz
Fix Bug 692830; remove unnecessary tests.
Remove remnants of old tests that are no longer required.
-rw-r--r--pdf/pdf_function.c6
1 files 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++)
{