Remove unused dispatcher names

This commit is contained in:
Behdad Esfahbod 2020-06-18 16:48:07 -07:00
parent b2a1acccd9
commit e47a2ab8f8
4 changed files with 1 additions and 7 deletions

View File

@ -43,6 +43,7 @@ struct hb_dispatch_context_t
const Context* thiz () const { return static_cast<const Context *> (this); } const Context* thiz () const { return static_cast<const Context *> (this); }
Context* thiz () { return static_cast< Context *> (this); } Context* thiz () { return static_cast< Context *> (this); }
public: public:
const char *get_name () { return "UNKNOWN"; }
static constexpr unsigned max_debug_depth = MaxDebugDepth; static constexpr unsigned max_debug_depth = MaxDebugDepth;
typedef Return return_t; typedef Return return_t;
template <typename T, typename F> template <typename T, typename F>

View File

@ -153,7 +153,6 @@ struct hb_subset_layout_context_t :
struct hb_collect_variation_indices_context_t : struct hb_collect_variation_indices_context_t :
hb_dispatch_context_t<hb_collect_variation_indices_context_t, hb_empty_t, 0> hb_dispatch_context_t<hb_collect_variation_indices_context_t, hb_empty_t, 0>
{ {
const char *get_name () { return "CLOSURE_LAYOUT_VARIATION_IDXES"; }
template <typename T> template <typename T>
return_t dispatch (const T &obj) { obj.collect_variation_indices (this); return hb_empty_t (); } return_t dispatch (const T &obj) { obj.collect_variation_indices (this); return hb_empty_t (); }
static return_t default_return_value () { return hb_empty_t (); } static return_t default_return_value () { return hb_empty_t (); }

View File

@ -44,7 +44,6 @@ namespace OT {
struct hb_intersects_context_t : struct hb_intersects_context_t :
hb_dispatch_context_t<hb_intersects_context_t, bool, 0> hb_dispatch_context_t<hb_intersects_context_t, bool, 0>
{ {
const char *get_name () { return "INTERSECTS"; }
template <typename T> template <typename T>
return_t dispatch (const T &obj) { return obj.intersects (this->glyphs); } return_t dispatch (const T &obj) { return obj.intersects (this->glyphs); }
static return_t default_return_value () { return false; } static return_t default_return_value () { return false; }
@ -61,7 +60,6 @@ struct hb_intersects_context_t :
struct hb_closure_context_t : struct hb_closure_context_t :
hb_dispatch_context_t<hb_closure_context_t, hb_empty_t, 0> hb_dispatch_context_t<hb_closure_context_t, hb_empty_t, 0>
{ {
const char *get_name () { return "CLOSURE"; }
typedef return_t (*recurse_func_t) (hb_closure_context_t *c, unsigned int lookup_index); typedef return_t (*recurse_func_t) (hb_closure_context_t *c, unsigned int lookup_index);
template <typename T> template <typename T>
return_t dispatch (const T &obj) { obj.closure (this); return hb_empty_t (); } return_t dispatch (const T &obj) { obj.closure (this); return hb_empty_t (); }
@ -136,7 +134,6 @@ struct hb_closure_context_t :
struct hb_closure_lookups_context_t : struct hb_closure_lookups_context_t :
hb_dispatch_context_t<hb_closure_lookups_context_t, hb_empty_t, 0> hb_dispatch_context_t<hb_closure_lookups_context_t, hb_empty_t, 0>
{ {
const char *get_name () { return "CLOSURE_LOOKUPS"; }
typedef return_t (*recurse_func_t) (hb_closure_lookups_context_t *c, unsigned lookup_index); typedef return_t (*recurse_func_t) (hb_closure_lookups_context_t *c, unsigned lookup_index);
template <typename T> template <typename T>
return_t dispatch (const T &obj) { obj.closure_lookups (this); return hb_empty_t (); } return_t dispatch (const T &obj) { obj.closure_lookups (this); return hb_empty_t (); }
@ -204,7 +201,6 @@ struct hb_closure_lookups_context_t :
struct hb_would_apply_context_t : struct hb_would_apply_context_t :
hb_dispatch_context_t<hb_would_apply_context_t, bool, 0> hb_dispatch_context_t<hb_would_apply_context_t, bool, 0>
{ {
const char *get_name () { return "WOULD_APPLY"; }
template <typename T> template <typename T>
return_t dispatch (const T &obj) { return obj.would_apply (this); } return_t dispatch (const T &obj) { return obj.would_apply (this); }
static return_t default_return_value () { return false; } static return_t default_return_value () { return false; }
@ -230,7 +226,6 @@ struct hb_would_apply_context_t :
struct hb_collect_glyphs_context_t : struct hb_collect_glyphs_context_t :
hb_dispatch_context_t<hb_collect_glyphs_context_t, hb_empty_t, 0> hb_dispatch_context_t<hb_collect_glyphs_context_t, hb_empty_t, 0>
{ {
const char *get_name () { return "COLLECT_GLYPHS"; }
typedef return_t (*recurse_func_t) (hb_collect_glyphs_context_t *c, unsigned int lookup_index); typedef return_t (*recurse_func_t) (hb_collect_glyphs_context_t *c, unsigned int lookup_index);
template <typename T> template <typename T>
return_t dispatch (const T &obj) { obj.collect_glyphs (this); return hb_empty_t (); } return_t dispatch (const T &obj) { obj.collect_glyphs (this); return hb_empty_t (); }

View File

@ -1973,7 +1973,6 @@ hb_ot_layout_get_baseline (hb_font_t *font,
struct hb_get_glyph_alternates_context_t : struct hb_get_glyph_alternates_context_t :
hb_dispatch_context_t<hb_get_glyph_alternates_context_t, unsigned, 0> hb_dispatch_context_t<hb_get_glyph_alternates_context_t, unsigned, 0>
{ {
const char *get_name () { return "GET_GLYPH_ALTERNATES"; }
static return_t default_return_value () { return 0; } static return_t default_return_value () { return 0; }
bool stop_sublookup_iteration (return_t r) const { return r; } bool stop_sublookup_iteration (return_t r) const { return r; }