mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-30 10:04:24 +01:00
Remove unused dispatcher names
This commit is contained in:
1 parent
b2a1acccd9
commit
e47a2ab8f8
4 files changed
+1
-7
No files matched your search
@@ -43,6 +43,7 @@ struct hb_dispatch_context_t
|
||||
const Context* thiz () const { return static_cast<const Context *> (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 <typename T, typename F>
|
||||
|
||||
@@ -153,7 +153,6 @@ struct hb_subset_layout_context_t :
|
||||
struct hb_collect_variation_indices_context_t :
|
||||
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>
|
||||
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 (); }
|
||||
|
||||
@@ -44,7 +44,6 @@ namespace OT {
|
||||
struct hb_intersects_context_t :
|
||||
hb_dispatch_context_t<hb_intersects_context_t, bool, 0>
|
||||
{
|
||||
const char *get_name () { return "INTERSECTS"; }
|
||||
template <typename T>
|
||||
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<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);
|
||||
template <typename 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 :
|
||||
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);
|
||||
template <typename 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 :
|
||||
hb_dispatch_context_t<hb_would_apply_context_t, bool, 0>
|
||||
{
|
||||
const char *get_name () { return "WOULD_APPLY"; }
|
||||
template <typename T>
|
||||
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<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);
|
||||
template <typename T>
|
||||
return_t dispatch (const T &obj) { obj.collect_glyphs (this); return hb_empty_t (); }
|
||||
|
||||
@@ -1973,7 +1973,6 @@ hb_ot_layout_get_baseline (hb_font_t *font,
|
||||
struct hb_get_glyph_alternates_context_t :
|
||||
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; }
|
||||
bool stop_sublookup_iteration (return_t r) const { return r; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user