[merge] Remove debug asserts

Fixes https://github.com/fonttools/fonttools/issues/1056
This commit is contained in:
Behdad Esfahbod 2017-09-18 13:10:03 -04:00
parent 588f5246c0
commit a302000023

View File

@ -995,8 +995,6 @@ class Merger(object):
for t in [GSUB, GPOS]:
if not t: continue
l = t.table.FeatureList.FeatureRecord
assert len(l) == len(set(x.Feature for x in l))
if t.table.FeatureList and t.table.ScriptList:
# Collect unregistered (new) features.
@ -1017,8 +1015,6 @@ class Merger(object):
t.table.FeatureList.FeatureCount = len(t.table.FeatureList.FeatureRecord)
assert len(l) == len(set(l))
assert len(l) == len(set(x.Feature for x in l))
if t.table.LookupList:
# Collect unregistered (new) lookups.