ufo: minor

_segments_to_quadratic is private, and always gets not-None 'stats' argument.
This if-branch is always true. Removed.
This commit is contained in:
Cosimo Lupo 2017-10-31 18:22:56 +00:00
parent 09c5856428
commit fabada54b1

View File

@ -141,8 +141,7 @@ def _segments_to_quadratic(segments, max_err, stats):
assert all(len(s) == n for s in new_points[1:]), 'Converted incompatibly'
spline_length = str(n - 2)
if stats is not None:
stats[spline_length] = stats.get(spline_length, 0) + 1
stats[spline_length] = stats.get(spline_length, 0) + 1
return [('qcurve', p) for p in new_points]