From e47a2ab8f8a90d903653a1d0d970c220f0957158 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 18 Jun 2020 16:48:07 -0700 Subject: [PATCH] Remove unused dispatcher names --- src/hb-dispatch.hh | 1 + src/hb-ot-layout-common.hh | 1 - src/hb-ot-layout-gsubgpos.hh | 5 ----- src/hb-ot-layout.cc | 1 - 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/hb-dispatch.hh b/src/hb-dispatch.hh index 1ce3fac93..acbb6e904 100644 --- a/src/hb-dispatch.hh +++ b/src/hb-dispatch.hh @@ -43,6 +43,7 @@ struct hb_dispatch_context_t const Context* thiz () const { return static_cast (this); } Context* thiz () { return static_cast< Context *> (this); } public: + const char *get_name () { return "UNKNOWN"; } static constexpr unsigned max_debug_depth = MaxDebugDepth; typedef Return return_t; template diff --git a/src/hb-ot-layout-common.hh b/src/hb-ot-layout-common.hh index fdd1f31c7..3ea62b15d 100644 --- a/src/hb-ot-layout-common.hh +++ b/src/hb-ot-layout-common.hh @@ -153,7 +153,6 @@ struct hb_subset_layout_context_t : struct hb_collect_variation_indices_context_t : hb_dispatch_context_t { - const char *get_name () { return "CLOSURE_LAYOUT_VARIATION_IDXES"; } template 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 (); } diff --git a/src/hb-ot-layout-gsubgpos.hh b/src/hb-ot-layout-gsubgpos.hh index 991fef6bb..1722cf870 100644 --- a/src/hb-ot-layout-gsubgpos.hh +++ b/src/hb-ot-layout-gsubgpos.hh @@ -44,7 +44,6 @@ namespace OT { struct hb_intersects_context_t : hb_dispatch_context_t { - const char *get_name () { return "INTERSECTS"; } template return_t dispatch (const T &obj) { return obj.intersects (this->glyphs); } static return_t default_return_value () { return false; } @@ -61,7 +60,6 @@ struct hb_intersects_context_t : struct hb_closure_context_t : hb_dispatch_context_t { - const char *get_name () { return "CLOSURE"; } typedef return_t (*recurse_func_t) (hb_closure_context_t *c, unsigned int lookup_index); template 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 : hb_dispatch_context_t { - const char *get_name () { return "CLOSURE_LOOKUPS"; } typedef return_t (*recurse_func_t) (hb_closure_lookups_context_t *c, unsigned lookup_index); template 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 : hb_dispatch_context_t { - const char *get_name () { return "WOULD_APPLY"; } template return_t dispatch (const T &obj) { return obj.would_apply (this); } static return_t default_return_value () { return false; } @@ -230,7 +226,6 @@ struct hb_would_apply_context_t : struct hb_collect_glyphs_context_t : hb_dispatch_context_t { - const char *get_name () { return "COLLECT_GLYPHS"; } typedef return_t (*recurse_func_t) (hb_collect_glyphs_context_t *c, unsigned int lookup_index); template return_t dispatch (const T &obj) { obj.collect_glyphs (this); return hb_empty_t (); } diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index 542d059d4..18ec4c932 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc @@ -1973,7 +1973,6 @@ hb_ot_layout_get_baseline (hb_font_t *font, struct hb_get_glyph_alternates_context_t : hb_dispatch_context_t { - const char *get_name () { return "GET_GLYPH_ALTERNATES"; } static return_t default_return_value () { return 0; } bool stop_sublookup_iteration (return_t r) const { return r; }