[util/hb-subset] Access input directly
This commit is contained in:
parent
6905f6fa60
commit
5bd463f130
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue