[subset] Remove debug burden

Fixes https://github.com/harfbuzz/harfbuzz/issues/2360
This commit is contained in:
Behdad Esfahbod 2021-02-12 14:14:17 -07:00
parent 00d9276343
commit 7a60f4e3a4
1 changed files with 9 additions and 6 deletions

View File

@ -171,6 +171,8 @@ struct hb_subset_plan_t
inline bool inline bool
add_table (hb_tag_t tag, add_table (hb_tag_t tag,
hb_blob_t *contents) hb_blob_t *contents)
{
if (HB_DEBUG_SUBSET)
{ {
hb_blob_t *source_blob = source->reference_table (tag); hb_blob_t *source_blob = source->reference_table (tag);
DEBUG_MSG(SUBSET, nullptr, "add table %c%c%c%c, dest %d bytes, source %d bytes", DEBUG_MSG(SUBSET, nullptr, "add table %c%c%c%c, dest %d bytes, source %d bytes",
@ -178,6 +180,7 @@ struct hb_subset_plan_t
hb_blob_get_length (contents), hb_blob_get_length (contents),
hb_blob_get_length (source_blob)); hb_blob_get_length (source_blob));
hb_blob_destroy (source_blob); hb_blob_destroy (source_blob);
}
return hb_face_builder_add_table (dest, tag, contents); return hb_face_builder_add_table (dest, tag, contents);
} }
}; };