diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2018-08-29 18:09:55 -0700 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2018-08-29 18:09:55 -0700 |
commit | f39166f0c0c09fac7874fda6b0b0825f20768e3e (patch) | |
tree | ddb625bc8158c1826cc9de1c4dfc2e7f4cabc089 /src/hb-subset.cc | |
parent | 2ccc322cf88a01248aa5df88a5073db3dfb40eea (diff) | |
download | harfbuzz-f39166f0c0c09fac7874fda6b0b0825f20768e3e.tar.gz |
[subset] Remove unused hb_subset_profile_t
We might reintroduce it later, but for now remove, as it was unused.
Some things that should have been in this object (drop_hints, etc)
are already in hb_subset_input_t. So, for now, keep everything there.
Diffstat (limited to 'src/hb-subset.cc')
-rw-r--r-- | src/hb-subset.cc | 39 |
1 files changed, 3 insertions, 36 deletions
diff --git a/src/hb-subset.cc b/src/hb-subset.cc index 1ba16059..1695d371 100644 --- a/src/hb-subset.cc +++ b/src/hb-subset.cc @@ -43,37 +43,6 @@ #include "hb-ot-post-table.hh" -struct hb_subset_profile_t { - hb_object_header_t header; - ASSERT_POD (); -}; - -/** - * hb_subset_profile_create: - * - * Return value: New profile with default settings. - * - * Since: 1.8.0 - **/ -hb_subset_profile_t * -hb_subset_profile_create () -{ - return hb_object_create<hb_subset_profile_t>(); -} - -/** - * hb_subset_profile_destroy: - * - * Since: 1.8.0 - **/ -void -hb_subset_profile_destroy (hb_subset_profile_t *profile) -{ - if (!hb_object_destroy (profile)) return; - - free (profile); -} - template<typename TableType> static bool _subset (hb_subset_plan_t *plan) @@ -198,19 +167,17 @@ _should_drop_table(hb_subset_plan_t *plan, hb_tag_t tag) /** * hb_subset: * @source: font face data to be subset. - * @profile: profile to use for the subsetting. * @input: input to use for the subsetting. * - * Subsets a font according to provided profile and input. + * Subsets a font according to provided input. **/ hb_face_t * hb_subset (hb_face_t *source, - hb_subset_profile_t *profile, hb_subset_input_t *input) { - if (unlikely (!profile || !input || !source)) return hb_face_get_empty(); + if (unlikely (!input || !source)) return hb_face_get_empty(); - hb_subset_plan_t *plan = hb_subset_plan_create (source, profile, input); + hb_subset_plan_t *plan = hb_subset_plan_create (source, input); hb_tag_t table_tags[32]; unsigned int offset = 0, count; |