[khmer] Remove indic_config_t
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 5 Jan 2018 16:04:02 +0000 (16:04 +0000)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 5 Jan 2018 16:04:02 +0000 (16:04 +0000)
src/hb-ot-shape-complex-khmer.cc

index 8b47fe6..ab9d940 100644 (file)
@@ -236,30 +236,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);