From 834af3b48a1aca3e53811d1eb4ca09b582b8e598 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 24 Aug 2011 01:45:47 +0200 Subject: [PATCH] [graphite] Remove hb_graphite2_feature_check() I don't see how this function can be useful. --- src/hb-graphite2.cc | 10 ---------- src/hb-graphite2.h | 2 -- 2 files changed, 12 deletions(-) diff --git a/src/hb-graphite2.cc b/src/hb-graphite2.cc index ccac015ca..493a9db92 100644 --- a/src/hb-graphite2.cc +++ b/src/hb-graphite2.cc @@ -433,14 +433,4 @@ dieout: return success; } -int hb_graphite2_feature_check(const hb_feature_t *feats, unsigned int num_feats) -{ - while (num_feats--) - { - if (feats[num_feats].tag == HB_TAG(' ', 'R', 'N', 'D')) - return (feats[num_feats].value == 1); - } - return 1; -} - HB_END_DECLS diff --git a/src/hb-graphite2.h b/src/hb-graphite2.h index 0d471d559..f3b7a6851 100644 --- a/src/hb-graphite2.h +++ b/src/hb-graphite2.h @@ -40,8 +40,6 @@ hb_bool_t hb_graphite_shape (hb_font_t *font, unsigned int num_features, const char * const *shaper_options); -int hb_graphite2_feature_check(const hb_feature_t *feats, unsigned int num_feats); - HB_END_DECLS #endif /* HB_GRAPHITE2_H */