diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-04-12 13:50:07 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-04-25 12:26:32 +0200 |
commit | 6ee3e43ca37620febd255390b2c29a2ceda35f93 (patch) | |
tree | a188d27e521bcf40270d30eaca6032bd34b76a50 /source | |
parent | 706ed587b875fab178fbfc2b60e1a49527e89b80 (diff) | |
download | mupdf-6ee3e43ca37620febd255390b2c29a2ceda35f93.tar.xz |
Purge unused function: pdf_new_obj_from_str.
Diffstat (limited to 'source')
-rw-r--r-- | source/pdf/pdf-object.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/source/pdf/pdf-object.c b/source/pdf/pdf-object.c index 0efd667e..286097f7 100644 --- a/source/pdf/pdf-object.c +++ b/source/pdf/pdf-object.c @@ -1730,30 +1730,6 @@ int pdf_obj_parent_num(fz_context *ctx, pdf_obj *obj) } } -pdf_obj *pdf_new_obj_from_str(fz_context *ctx, pdf_document *doc, const char *src) -{ - pdf_obj *result = NULL; - pdf_lexbuf lexbuf; - fz_stream *stream = fz_open_memory(ctx, (unsigned char *)src, strlen(src)); - - pdf_lexbuf_init(ctx, &lexbuf, PDF_LEXBUF_SMALL); - fz_try(ctx) - { - result = pdf_parse_stm_obj(ctx, doc, stream, &lexbuf); - } - fz_always(ctx) - { - pdf_lexbuf_fin(ctx, &lexbuf); - fz_drop_stream(ctx, stream); - } - fz_catch(ctx) - { - fz_rethrow(ctx); - } - - return result; -} - /* Pretty printing objects */ struct fmt |