From 5bd463f130935df282cc2a484ef1bb6dbd047170 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 10 Aug 2021 14:26:48 -0600 Subject: [PATCH] [util/hb-subset] Access input directly --- util/hb-subset.cc | 3 --- util/subset-options.hh | 5 ----- 2 files changed, 8 deletions(-) diff --git a/util/hb-subset.cc b/util/hb-subset.cc index 789a68a58..b596752e2 100644 --- a/util/hb-subset.cc +++ b/util/hb-subset.cc @@ -50,7 +50,6 @@ struct subset_consumer_t : subset_options_t, output_options_t void init (const face_options_t *face_opts) { face = hb_face_reference (face_opts->get_face ()); - input = hb_subset_input_reference (get_input ()); } void consume_line (const char *text, @@ -117,7 +116,6 @@ struct subset_consumer_t : subset_options_t, output_options_t hb_blob_destroy (result); } - hb_subset_input_destroy (input); hb_face_destroy (new_face); hb_face_destroy (face); } @@ -126,7 +124,6 @@ struct subset_consumer_t : subset_options_t, output_options_t bool failed = false; hb_face_t *face = nullptr; - hb_subset_input_t *input = nullptr; }; int diff --git a/util/subset-options.hh b/util/subset-options.hh index 62f5571ac..f2f85c215 100644 --- a/util/subset-options.hh +++ b/util/subset-options.hh @@ -42,11 +42,6 @@ struct subset_options_t void add_options (option_parser_t *parser); - hb_subset_input_t * get_input () - { - return input; - } - unsigned num_iterations = 1; hb_subset_input_t *input = nullptr; };