You need to sign in or sign up before continuing.
提交 3d66f441 编写于 作者: B Behdad Esfahbod

[subset] Remove unreachable code

sanitizer.sanitize never return nullptr.
上级 42040a27
...@@ -112,10 +112,6 @@ _subset (hb_subset_plan_t *plan, hb_face_t *source) ...@@ -112,10 +112,6 @@ _subset (hb_subset_plan_t *plan, hb_face_t *source)
{ {
OT::Sanitizer<TableType> sanitizer; OT::Sanitizer<TableType> sanitizer;
hb_blob_t *source_blob = sanitizer.sanitize (source->reference_table (TableType::tableTag)); hb_blob_t *source_blob = sanitizer.sanitize (source->reference_table (TableType::tableTag));
if (unlikely(!source_blob)) {
DEBUG_MSG(SUBSET, nullptr, "Failed to reference table for tag %d", TableType::tableTag);
return nullptr;
}
const TableType *table = OT::Sanitizer<TableType>::lock_instance (source_blob); const TableType *table = OT::Sanitizer<TableType>::lock_instance (source_blob);
hb_blob_t *result = table->subset(plan, source); hb_blob_t *result = table->subset(plan, source);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册