summaryrefslogtreecommitdiff
path: root/source/fitz/load-tiff.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-04-27 16:48:28 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-04-27 17:01:06 +0200
commitd6813444e1fa8c633398fa47e5c919801158eecd (patch)
tree06fbe29d76c023ddc9e8b15c402fc23e3018c3c3 /source/fitz/load-tiff.c
parent29d53a0a460e00b3ec9dda508adbd2964077ab27 (diff)
downloadmupdf-d6813444e1fa8c633398fa47e5c919801158eecd.tar.xz
Remove useless try/catch/rethrows.
Diffstat (limited to 'source/fitz/load-tiff.c')
-rw-r--r--source/fitz/load-tiff.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/source/fitz/load-tiff.c b/source/fitz/load-tiff.c
index 819ed7fd..2002c61a 100644
--- a/source/fitz/load-tiff.c
+++ b/source/fitz/load-tiff.c
@@ -939,21 +939,14 @@ fz_load_tiff_subimage_count(fz_context *ctx, unsigned char *buf, int len)
unsigned subimage_count = 0;
struct tiff tiff = { 0 };
- fz_try(ctx)
- {
- fz_decode_tiff_header(ctx, &tiff, buf, len);
+ fz_decode_tiff_header(ctx, &tiff, buf, len);
- offset = tiff.ifd_offset;
+ offset = tiff.ifd_offset;
- do {
- subimage_count++;
- offset = fz_next_ifd(ctx, &tiff, offset);
- } while (offset != 0);
- }
- fz_catch(ctx)
- {
- fz_rethrow(ctx);
- }
+ do {
+ subimage_count++;
+ offset = fz_next_ifd(ctx, &tiff, offset);
+ } while (offset != 0);
return subimage_count;
}