[util/hb-subset] Access input directly

This commit is contained in:
Behdad Esfahbod 2021-08-10 14:26:48 -06:00
parent 6905f6fa60
commit 5bd463f130
2 changed files with 0 additions and 8 deletions

View File

@ -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

View File

@ -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;
};