diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-05-07 16:46:16 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-05-16 12:48:07 +0200 |
commit | f4cb197ad36f5ea3ab834abb41d2641daf152622 (patch) | |
tree | e5d7222f7ffb1308c1d060c367f363723151b739 /include | |
parent | b4e9bdcd4daa09e27e112979750d1f85e3c5496e (diff) | |
download | mupdf-f4cb197ad36f5ea3ab834abb41d2641daf152622.tar.xz |
Purge unused functions.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/color-management.h | 1 | ||||
-rw-r--r-- | include/mupdf/fitz/colorspace.h | 1 | ||||
-rw-r--r-- | include/mupdf/fitz/context.h | 18 | ||||
-rw-r--r-- | include/mupdf/fitz/filter.h | 1 | ||||
-rw-r--r-- | include/mupdf/fitz/pixmap.h | 6 | ||||
-rw-r--r-- | include/mupdf/fitz/separation.h | 6 | ||||
-rw-r--r-- | include/mupdf/fitz/string-util.h | 7 | ||||
-rw-r--r-- | include/mupdf/fitz/structured-text.h | 3 | ||||
-rw-r--r-- | include/mupdf/fitz/text.h | 9 | ||||
-rw-r--r-- | include/mupdf/pdf/object.h | 3 |
10 files changed, 0 insertions, 55 deletions
diff --git a/include/mupdf/fitz/color-management.h b/include/mupdf/fitz/color-management.h index a2f20e9d..85d5e293 100644 --- a/include/mupdf/fitz/color-management.h +++ b/include/mupdf/fitz/color-management.h @@ -77,7 +77,6 @@ struct fz_cmm_engine_s { fz_cmm_fin_link_fn *fin_link; fz_cmm_init_profile_fn *init_profile; fz_cmm_fin_profile_fn *fin_profile; - int avoid_white_fix_flag; }; /* diff --git a/include/mupdf/fitz/colorspace.h b/include/mupdf/fitz/colorspace.h index d5d4e46b..f027ce2e 100644 --- a/include/mupdf/fitz/colorspace.h +++ b/include/mupdf/fitz/colorspace.h @@ -166,7 +166,6 @@ void fz_drop_colorspace(fz_context *ctx, fz_colorspace *colorspace); void fz_drop_colorspace_imp(fz_context *ctx, fz_storable *colorspace); fz_colorspace *fz_colorspace_base(fz_context *ctx, const fz_colorspace *cs); -void fz_set_icc_bgr(fz_context *ctx, fz_colorspace *cs); int fz_colorspace_n(fz_context *ctx, const fz_colorspace *cs); int fz_colorspace_devicen_n(fz_context *ctx, const fz_colorspace *cs); const char *fz_colorspace_name(fz_context *ctx, const fz_colorspace *cs); diff --git a/include/mupdf/fitz/context.h b/include/mupdf/fitz/context.h index 5a05f940..8f72ad99 100644 --- a/include/mupdf/fitz/context.h +++ b/include/mupdf/fitz/context.h @@ -12,7 +12,6 @@ typedef struct fz_alloc_context_s fz_alloc_context; typedef struct fz_error_context_s fz_error_context; typedef struct fz_error_stack_slot_s fz_error_stack_slot; -typedef struct fz_id_context_s fz_id_context; typedef struct fz_warn_context_s fz_warn_context; typedef struct fz_font_context_s fz_font_context; typedef struct fz_colorspace_context_s fz_colorspace_context; @@ -148,7 +147,6 @@ struct fz_context_s void *user; const fz_alloc_context *alloc; fz_locks_context locks; - fz_id_context *id; fz_error_context *error; fz_warn_context *warn; fz_font_context *font; @@ -536,22 +534,6 @@ void *fz_malloc_array_no_throw(fz_context *ctx, size_t count, size_t size); */ void *fz_resize_array_no_throw(fz_context *ctx, void *p, size_t count, size_t size); -/* - fz_strdup_no_throw: Duplicate a C string (with scavenging) - - s: The string to duplicate. - - Returns a pointer to a duplicated string. Returns NULL on failure - to allocate. -*/ -char *fz_strdup_no_throw(fz_context *ctx, const char *s); - -/* - fz_gen_id: Generate an id (guaranteed unique within this family of - contexts). -*/ -int fz_gen_id(fz_context *ctx); - struct fz_warn_context_s { char message[256]; diff --git a/include/mupdf/fitz/filter.h b/include/mupdf/fitz/filter.h index 782c4d80..495b960e 100644 --- a/include/mupdf/fitz/filter.h +++ b/include/mupdf/fitz/filter.h @@ -15,7 +15,6 @@ typedef struct int len; } fz_range; -fz_stream *fz_open_copy(fz_context *ctx, fz_stream *chain); fz_stream *fz_open_null_n(fz_context *ctx, fz_stream *chain, fz_range *ranges, int nranges); fz_stream *fz_open_null(fz_context *ctx, fz_stream *chain, int len, int64_t offset); fz_stream *fz_open_concat(fz_context *ctx, int max, int pad); diff --git a/include/mupdf/fitz/pixmap.h b/include/mupdf/fitz/pixmap.h index fcf9d8b3..b0422033 100644 --- a/include/mupdf/fitz/pixmap.h +++ b/include/mupdf/fitz/pixmap.h @@ -285,12 +285,6 @@ void fz_invert_pixmap_rect(fz_context *ctx, fz_pixmap *image, const fz_irect *re void fz_gamma_pixmap(fz_context *ctx, fz_pixmap *pix, float gamma); /* - fz_unmultiply_pixmap: Convert a pixmap from premultiplied to - non-premultiplied format. -*/ -void fz_unmultiply_pixmap(fz_context *ctx, fz_pixmap *pix); - -/* fz_convert_pixmap: Convert an existing pixmap to a desired colorspace. Other properties of the pixmap, such as resolution and position are copied to the converted pixmap. diff --git a/include/mupdf/fitz/separation.h b/include/mupdf/fitz/separation.h index aa66b3ba..584ae7d1 100644 --- a/include/mupdf/fitz/separation.h +++ b/include/mupdf/fitz/separation.h @@ -52,18 +52,12 @@ void fz_set_separation_behavior(fz_context *ctx, fz_separations *sep, int separa /* Test for the current behavior of a separation */ fz_separation_behavior fz_separation_current_behavior(fz_context *ctx, const fz_separations *sep, int separation); -/* Quick test for all separations composite (the common case) */ -int fz_separations_all_composite(fz_context *ctx, const fz_separations *sep); - /* Read separation name */ const char *fz_separation_name(fz_context *ctx, const fz_separations *sep, int separation); /* Count the number of separations */ int fz_count_separations(fz_context *ctx, const fz_separations *sep); -/* Find out if separations are controllable. */ -int fz_separations_controllable(fz_context *ctx, const fz_separations *seps); - /* Return the number of active separations. */ int fz_count_active_separations(fz_context *ctx, const fz_separations *seps); diff --git a/include/mupdf/fitz/string-util.h b/include/mupdf/fitz/string-util.h index 13941d62..fdf47c86 100644 --- a/include/mupdf/fitz/string-util.h +++ b/include/mupdf/fitz/string-util.h @@ -142,13 +142,6 @@ int fz_utflen(const char *s); float fz_strtof(const char *s, char **es); /* - fz_strtof_no_exp: Like fz_strtof, but does not recognize exponent - format. So fz_strtof_no_exp("1.5e20", &tail) will return 1.5 and tail - will point to "e20". -*/ - -float fz_strtof_no_exp(const char *string, char **tailptr); -/* fz_grisu: Compute decimal integer m, exp such that: f = m * 10^exp m is as short as possible without losing exactness diff --git a/include/mupdf/fitz/structured-text.h b/include/mupdf/fitz/structured-text.h index b062813f..0ad6cd3c 100644 --- a/include/mupdf/fitz/structured-text.h +++ b/include/mupdf/fitz/structured-text.h @@ -103,9 +103,6 @@ struct fz_stext_char_s extern const char *fz_stext_options_usage; -int fz_stext_char_count(fz_context *ctx, fz_stext_page *page); -const fz_stext_char *fz_stext_char_at(fz_context *ctx, fz_stext_page *page, int idx); - /* fz_new_stext_page: Create an empty text page. diff --git a/include/mupdf/fitz/text.h b/include/mupdf/fitz/text.h index d7d7ffb5..d2b9d21f 100644 --- a/include/mupdf/fitz/text.h +++ b/include/mupdf/fitz/text.h @@ -159,15 +159,6 @@ void fz_show_string(fz_context *ctx, fz_text *text, fz_font *font, fz_matrix *tr fz_rect *fz_bound_text(fz_context *ctx, const fz_text *text, const fz_stroke_state *stroke, const fz_matrix *ctm, fz_rect *r); /* - fz_clone_text: Clone a text object. - - text: The text object to clone. - - Throws an exception on allocation failure. -*/ -fz_text *fz_clone_text(fz_context *ctx, const fz_text *text); - -/* Convert ISO 639 (639-{1,2,3,5}) language specification strings losslessly to a 15 bit fz_text_language code. diff --git a/include/mupdf/pdf/object.h b/include/mupdf/pdf/object.h index dfbaf3b2..677d79d4 100644 --- a/include/mupdf/pdf/object.h +++ b/include/mupdf/pdf/object.h @@ -169,10 +169,7 @@ void pdf_debug_obj(fz_context *ctx, pdf_obj *obj); char *pdf_to_utf8(fz_context *ctx, pdf_obj *src); char *pdf_load_stream_as_utf8(fz_context *ctx, pdf_obj *src); char *pdf_load_stream_or_string_as_utf8(fz_context *ctx, pdf_obj *src); -unsigned short *pdf_to_ucs2(fz_context *ctx, pdf_obj *src); pdf_obj *pdf_to_utf8_name(fz_context *ctx, pdf_obj *src); -char *pdf_from_ucs2(fz_context *ctx, unsigned short *str); -void pdf_to_ucs2_buf(fz_context *ctx, unsigned short *buffer, pdf_obj *src); fz_rect *pdf_to_rect(fz_context *ctx, pdf_obj *array, fz_rect *rect); fz_matrix *pdf_to_matrix(fz_context *ctx, pdf_obj *array, fz_matrix *mat); |