diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-12-12 20:48:51 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-12-17 18:51:55 +0000 |
commit | 425c0f2e84deba27f064d8dd0d5b96c44564c1ec (patch) | |
tree | f3065a78f511b6aca8cd7d9f63d59980b72f314d /source/pdf | |
parent | d5ddd5be7fd5178d30fe4b90baf8ffcb86c770ad (diff) | |
download | mupdf-425c0f2e84deba27f064d8dd0d5b96c44564c1ec.tar.xz |
Remove fz_context from pdf_crypt
Unused field. Also tweak some comments for clarity.
Diffstat (limited to 'source/pdf')
-rw-r--r-- | source/pdf/pdf-crypt.c | 2 | ||||
-rw-r--r-- | source/pdf/pdf-xref.c | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/source/pdf/pdf-crypt.c b/source/pdf/pdf-crypt.c index 92a9e428..e40fad95 100644 --- a/source/pdf/pdf-crypt.c +++ b/source/pdf/pdf-crypt.c @@ -36,7 +36,6 @@ struct pdf_crypt_s int encrypt_metadata; unsigned char key[32]; /* decryption key generated from password */ - fz_context *ctx; }; static void pdf_parse_crypt_filter(fz_context *ctx, pdf_crypt_filter *cf, pdf_crypt *crypt, char *name); @@ -954,7 +953,6 @@ pdf_open_crypt_imp(fz_stream *chain, pdf_crypt *crypt, pdf_crypt_filter *stmf, i unsigned char key[32]; int len; - crypt->ctx = chain->ctx; len = pdf_compute_object_key(crypt, stmf, num, gen, key, 32); if (stmf->method == PDF_CRYPT_RC4) diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c index fbadd0a4..338dec94 100644 --- a/source/pdf/pdf-xref.c +++ b/source/pdf/pdf-xref.c @@ -638,7 +638,6 @@ pdf_read_new_xref(pdf_document *doc, pdf_lexbuf *buf) return trailer; } -/* File is locked on entry, and exit (but may be dropped in the middle) */ static pdf_obj * pdf_read_xref(pdf_document *doc, int ofs, pdf_lexbuf *buf) { |