From 1d3971200be5b1c949d3eca185654e48584a0868 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 15 Oct 2017 16:15:24 +0200 Subject: [PATCH] Deprecate hb_set_invert() --- src/hb-deprecated.h | 4 ++++ src/hb-set.cc | 3 ++- src/hb-set.h | 3 --- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/hb-deprecated.h b/src/hb-deprecated.h index 0398dfae6..eac7efb42 100644 --- a/src/hb-deprecated.h +++ b/src/hb-deprecated.h @@ -34,6 +34,7 @@ #include "hb-common.h" #include "hb-unicode.h" #include "hb-font.h" +#include "hb-set.h" HB_BEGIN_DECLS @@ -54,6 +55,9 @@ hb_font_funcs_set_glyph_func (hb_font_funcs_t *ffuncs, hb_font_get_glyph_func_t func, void *user_data, hb_destroy_func_t destroy); +HB_EXTERN void +hb_set_invert (hb_set_t *set); + #endif HB_END_DECLS diff --git a/src/hb-set.cc b/src/hb-set.cc index f3fe1ba43..d33e525de 100644 --- a/src/hb-set.cc +++ b/src/hb-set.cc @@ -376,11 +376,12 @@ hb_set_symmetric_difference (hb_set_t *set, * * * Since: 0.9.10 + * + * Deprecated: 1.6.1 **/ void hb_set_invert (hb_set_t *set) { - set->invert (); } /** diff --git a/src/hb-set.h b/src/hb-set.h index 2164c1a65..2ce406073 100644 --- a/src/hb-set.h +++ b/src/hb-set.h @@ -126,9 +126,6 @@ HB_EXTERN void hb_set_symmetric_difference (hb_set_t *set, const hb_set_t *other); -HB_EXTERN void -hb_set_invert (hb_set_t *set); - HB_EXTERN unsigned int hb_set_get_population (const hb_set_t *set);