[subset] Remove hb_subset_input_get/set_desubroutinize.

This commit is contained in:
Garret Rieger 2021-06-09 14:11:17 -07:00
parent 8bf5d4d4f7
commit 77b4a1cd96
4 changed files with 6 additions and 25 deletions

View File

@ -326,19 +326,6 @@ hb_subset_input_set_flag (hb_subset_input_t *input,
} }
} }
HB_EXTERN void
hb_subset_input_set_desubroutinize (hb_subset_input_t *subset_input,
hb_bool_t desubroutinize)
{
subset_input->desubroutinize = desubroutinize;
}
HB_EXTERN hb_bool_t
hb_subset_input_get_desubroutinize (hb_subset_input_t *subset_input)
{
return subset_input->desubroutinize;
}
/** /**
* hb_subset_input_set_retain_gids: * hb_subset_input_set_retain_gids:
* @subset_input: a subset_input. * @subset_input: a subset_input.

View File

@ -95,12 +95,6 @@ hb_subset_input_set_flag (hb_subset_input_t *input,
HB_EXTERN void
hb_subset_input_set_desubroutinize (hb_subset_input_t *subset_input,
hb_bool_t desubroutinize);
HB_EXTERN hb_bool_t
hb_subset_input_get_desubroutinize (hb_subset_input_t *subset_input);
HB_EXTERN void HB_EXTERN void
hb_subset_input_set_retain_gids (hb_subset_input_t *subset_input, hb_subset_input_set_retain_gids (hb_subset_input_t *subset_input,
hb_bool_t retain_gids); hb_bool_t retain_gids);

View File

@ -103,7 +103,7 @@ test_subset_cff1_desubr (void)
hb_set_add (codepoints, 'a'); hb_set_add (codepoints, 'a');
hb_set_add (codepoints, 'c'); hb_set_add (codepoints, 'c');
input = hb_subset_test_create_input (codepoints); input = hb_subset_test_create_input (codepoints);
hb_subset_input_set_desubroutinize (input, true); hb_subset_input_set_flag (input, HB_SUBSET_FLAG_DESUBROUTINIZE, true);
face_abc_subset = hb_subset_test_create_subset (face_abc, input); face_abc_subset = hb_subset_test_create_subset (face_abc, input);
hb_set_destroy (codepoints); hb_set_destroy (codepoints);
@ -127,7 +127,7 @@ test_subset_cff1_desubr_strip_hints (void)
hb_set_add (codepoints, 'c'); hb_set_add (codepoints, 'c');
input = hb_subset_test_create_input (codepoints); input = hb_subset_test_create_input (codepoints);
hb_subset_input_set_flag (input, HB_SUBSET_FLAG_HINTING, false); hb_subset_input_set_flag (input, HB_SUBSET_FLAG_HINTING, false);
hb_subset_input_set_desubroutinize (input, true); hb_subset_input_set_flag (input, HB_SUBSET_FLAG_DESUBROUTINIZE, true);
face_abc_subset = hb_subset_test_create_subset (face_abc, input); face_abc_subset = hb_subset_test_create_subset (face_abc, input);
hb_set_destroy (codepoints); hb_set_destroy (codepoints);
@ -193,7 +193,7 @@ test_subset_cff1_j_desubr (void)
hb_set_add (codepoints, 0x41); hb_set_add (codepoints, 0x41);
hb_set_add (codepoints, 0x4C2E); hb_set_add (codepoints, 0x4C2E);
input = hb_subset_test_create_input (codepoints); input = hb_subset_test_create_input (codepoints);
hb_subset_input_set_desubroutinize (input, true); hb_subset_input_set_flag (input, HB_SUBSET_FLAG_DESUBROUTINIZE, true);
face_41_3041_4c2e_subset = hb_subset_test_create_subset (face_41_3041_4c2e, input); face_41_3041_4c2e_subset = hb_subset_test_create_subset (face_41_3041_4c2e, input);
hb_set_destroy (codepoints); hb_set_destroy (codepoints);
@ -217,7 +217,7 @@ test_subset_cff1_j_desubr_strip_hints (void)
hb_set_add (codepoints, 0x4C2E); hb_set_add (codepoints, 0x4C2E);
input = hb_subset_test_create_input (codepoints); input = hb_subset_test_create_input (codepoints);
hb_subset_input_set_flag (input, HB_SUBSET_FLAG_HINTING, false); hb_subset_input_set_flag (input, HB_SUBSET_FLAG_HINTING, false);
hb_subset_input_set_desubroutinize (input, true); hb_subset_input_set_flag (input, HB_SUBSET_FLAG_DESUBROUTINIZE, true);
face_41_3041_4c2e_subset = hb_subset_test_create_subset (face_41_3041_4c2e, input); face_41_3041_4c2e_subset = hb_subset_test_create_subset (face_41_3041_4c2e, input);
hb_set_destroy (codepoints); hb_set_destroy (codepoints);

View File

@ -103,7 +103,7 @@ test_subset_cff2_desubr (void)
hb_set_add (codepoints, 'a'); hb_set_add (codepoints, 'a');
hb_set_add (codepoints, 'c'); hb_set_add (codepoints, 'c');
input = hb_subset_test_create_input (codepoints); input = hb_subset_test_create_input (codepoints);
hb_subset_input_set_desubroutinize (input, true); hb_subset_input_set_flag (input, HB_SUBSET_FLAG_DESUBROUTINIZE, true);
face_abc_subset = hb_subset_test_create_subset (face_abc, input); face_abc_subset = hb_subset_test_create_subset (face_abc, input);
hb_set_destroy (codepoints); hb_set_destroy (codepoints);
@ -126,7 +126,7 @@ test_subset_cff2_desubr_strip_hints (void)
hb_set_add (codepoints, 'a'); hb_set_add (codepoints, 'a');
hb_set_add (codepoints, 'c'); hb_set_add (codepoints, 'c');
input = hb_subset_test_create_input (codepoints); input = hb_subset_test_create_input (codepoints);
hb_subset_input_set_desubroutinize (input, true); hb_subset_input_set_flag (input, HB_SUBSET_FLAG_DESUBROUTINIZE, true);
hb_subset_input_set_flag (input, HB_SUBSET_FLAG_HINTING, false); hb_subset_input_set_flag (input, HB_SUBSET_FLAG_HINTING, false);
face_abc_subset = hb_subset_test_create_subset (face_abc, input); face_abc_subset = hb_subset_test_create_subset (face_abc, input);
hb_set_destroy (codepoints); hb_set_destroy (codepoints);