summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-12-08 16:43:13 +0100
committerTor Andersson <tor.andersson@artifex.com>2011-12-08 21:46:56 +0100
commit787c07bc94c3aa163981cb0321e92ce465d33d5f (patch)
tree03f4c70d285fa3ba9c5a7537ea060dc8af7e5b6a /scripts
parentd1e25d11f7191ace03242c456a97b96febaec063 (diff)
downloadmupdf-787c07bc94c3aa163981cb0321e92ce465d33d5f.tar.xz
Remove remaining fz_error_note calls in the pdf code.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cmapdump.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/scripts/cmapdump.c b/scripts/cmapdump.c
index be7a456e..f2d70631 100644
--- a/scripts/cmapdump.c
+++ b/scripts/cmapdump.c
@@ -36,7 +36,6 @@ int
main(int argc, char **argv)
{
pdf_cmap *cmap;
- fz_error error;
fz_stream *fi;
FILE *fo;
char name[256];
@@ -86,18 +85,8 @@ main(int argc, char **argv)
clean(name);
fi = fz_open_file(ctx, argv[i]);
- if (!fi)
- fz_error_make("cmapdump: could not open input file '%s'\n", argv[i]);
-
- fz_try(ctx)
- {
- cmap = pdf_parse_cmap(fi);
- }
- fz_catch(ctx)
- {
- fz_error_handle(error, "cmapdump: could not parse input cmap '%s'\n", argv[i]);
- return 1;
- }
+ cmap = pdf_parse_cmap(fi);
+ fz_close(fi);
fprintf(fo, "\n/* %s */\n\n", cmap->cmap_name);
@@ -159,8 +148,6 @@ main(int argc, char **argv)
if (getenv("verbose"))
printf("\t{\"%s\",&cmap_%s},\n", cmap->cmap_name, name);
-
- fz_close(fi);
}
if (fclose(fo))