diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-04-27 16:48:28 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-04-27 17:01:06 +0200 |
commit | d6813444e1fa8c633398fa47e5c919801158eecd (patch) | |
tree | 06fbe29d76c023ddc9e8b15c402fc23e3018c3c3 /source/fitz/load-gif.c | |
parent | 29d53a0a460e00b3ec9dda508adbd2964077ab27 (diff) | |
download | mupdf-d6813444e1fa8c633398fa47e5c919801158eecd.tar.xz |
Remove useless try/catch/rethrows.
Diffstat (limited to 'source/fitz/load-gif.c')
-rw-r--r-- | source/fitz/load-gif.c | 34 |
1 files changed, 3 insertions, 31 deletions
diff --git a/source/fitz/load-gif.c b/source/fitz/load-gif.c index 46b2ba66..02c153f0 100644 --- a/source/fitz/load-gif.c +++ b/source/fitz/load-gif.c @@ -304,16 +304,7 @@ gif_read_gce(fz_context *ctx, struct info *info, unsigned char *p, unsigned char static unsigned char * gif_read_ce(fz_context *ctx, struct info *info, unsigned char *p, unsigned char *end) { - fz_try(ctx) - { - p = gif_read_subblocks(ctx, info, p + 2, end, NULL); - } - fz_catch(ctx) - { - fz_rethrow(ctx); - } - - return p; + return gif_read_subblocks(ctx, info, p + 2, end, NULL); } static unsigned char* @@ -323,17 +314,7 @@ gif_read_pte(fz_context *ctx, struct info *info, unsigned char *p, unsigned char fz_throw(ctx, FZ_ERROR_GENERIC, "premature end in plain text extension in gif image"); if (p[2] != 0x0c) fz_throw(ctx, FZ_ERROR_GENERIC, "out of range plain text extension block size in gif image"); - - fz_try(ctx) - { - p = gif_read_subblocks(ctx, info, p + 15, end, NULL); - } - fz_catch(ctx) - { - fz_rethrow(ctx); - } - - return p; + return gif_read_subblocks(ctx, info, p + 15, end, NULL); } /* @@ -387,16 +368,7 @@ gif_read_ae(fz_context *ctx, struct info *info, unsigned char *p, unsigned char fz_warn(ctx, "ignoring unsupported application extension '%s' in gif image", extension); } - fz_try(ctx) - { - p = gif_read_subblocks(ctx, info, p + 14, end, NULL); - } - fz_catch(ctx) - { - fz_rethrow(ctx); - } - - return p; + return gif_read_subblocks(ctx, info, p + 14, end, NULL); } static void |