mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 22:11:04 +01:00
[util/hb-subset] Access input directly
This commit is contained in:
1 parent
6905f6fa60
commit
5bd463f130
2 files changed
-8
No files matched your search
@@ -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;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user