[khmer] Remove indic_config_t

This commit is contained in:
Behdad Esfahbod 2018-01-05 16:04:02 +00:00
parent a119a8bce5
commit f8553c898a
1 changed files with 0 additions and 28 deletions

View File

@ -235,30 +235,6 @@ set_khmer_properties (hb_glyph_info_t &info)
*/
/*
* Indic configurations. Note that we do not want to keep every single script-specific
* behavior in these tables necessarily. This should mainly be used for per-script
* properties that are cheaper keeping here, than in the code. Ie. if, say, one and
* only one script has an exception, that one script can be if'ed directly in the code,
* instead of adding a new flag in these structs.
*/
enum blwf_mode_t {
BLWF_MODE_PRE_AND_POST, /* Below-forms feature applied to pre-base and post-base. */
BLWF_MODE_POST_ONLY /* Below-forms feature applied to post-base only. */
};
struct indic_config_t
{
blwf_mode_t blwf_mode;
};
static const indic_config_t indic_configs[] =
{
{BLWF_MODE_PRE_AND_POST},
};
/*
* Indic shaper.
*/
@ -446,8 +422,6 @@ struct khmer_shape_plan_t
return glyph != 0;
}
const indic_config_t *config;
mutable hb_codepoint_t virama_glyph;
would_substitute_feature_t rphf;
@ -463,8 +437,6 @@ data_create_khmer (const hb_ot_shape_plan_t *plan)
if (unlikely (!khmer_plan))
return nullptr;
khmer_plan->config = &indic_configs[0];
khmer_plan->virama_glyph = (hb_codepoint_t) -1;
khmer_plan->rphf.init (&plan->map, HB_TAG('r','p','h','f'), true);