diff options
author | Joseph Heenan <joseph@emobix.co.uk> | 2014-10-02 22:27:00 +0200 |
---|---|---|
committer | Joseph Heenan <joseph@emobix.co.uk> | 2014-10-04 08:11:35 -0500 |
commit | e481ca09f57c33b7010660c464282d25432a106b (patch) | |
tree | 859bf1fa8313b05a63f42900f9410894738a3b11 | |
parent | 4b3da6e8551372be1aa9533bb8fe7f40bff82566 (diff) | |
download | mupdf-e481ca09f57c33b7010660c464282d25432a106b.tar.xz |
iOS: minor cleans ups
unused variables / functions / potential uninitialised variable usage
-rw-r--r-- | include/mupdf/fitz/stream.h | 4 | ||||
-rw-r--r-- | platform/ios/Classes/MuPageViewReflow.m | 2 | ||||
-rw-r--r-- | platform/ios/Classes/MuPrintPageRenderer.m | 6 |
3 files changed, 2 insertions, 10 deletions
diff --git a/include/mupdf/fitz/stream.h b/include/mupdf/fitz/stream.h index 607e88da..f7eb6f16 100644 --- a/include/mupdf/fitz/stream.h +++ b/include/mupdf/fitz/stream.h @@ -218,7 +218,7 @@ void fz_read_line(fz_stream *stm, char *buf, int max); static inline int fz_available(fz_stream *stm, int max) { int len = stm->wp - stm->rp; - int c; + int c = EOF; if (len) return len; @@ -244,7 +244,7 @@ static inline int fz_available(fz_stream *stm, int max) static inline int fz_read_byte(fz_stream *stm) { - int c; + int c = EOF; if (stm->rp != stm->wp) return *stm->rp++; diff --git a/platform/ios/Classes/MuPageViewReflow.m b/platform/ios/Classes/MuPageViewReflow.m index 8c003160..bc0e2c79 100644 --- a/platform/ios/Classes/MuPageViewReflow.m +++ b/platform/ios/Classes/MuPageViewReflow.m @@ -21,8 +21,6 @@ NSString *textAsHtml(fz_document *doc, int pageNum) fz_try(ctx) { - int b, l, s, c; - ctm = fz_identity; sheet = fz_new_text_sheet(ctx); text = fz_new_text_page(ctx); diff --git a/platform/ios/Classes/MuPrintPageRenderer.m b/platform/ios/Classes/MuPrintPageRenderer.m index fc4adba8..36f66ee9 100644 --- a/platform/ios/Classes/MuPrintPageRenderer.m +++ b/platform/ios/Classes/MuPrintPageRenderer.m @@ -101,12 +101,6 @@ static void freePage(fz_document *doc, fz_page *page) }); } -static void dropPixmap(fz_pixmap *pix) -{ - dispatch_sync(queue, ^{ - fz_drop_pixmap(ctx, pix); - }); -} static void renderPage(fz_document *doc, fz_page *page, fz_pixmap *pix, fz_matrix *ctm) { dispatch_sync(queue, ^{ |