Skip to content

Commit

Permalink
[interpolatable] Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
behdad committed Jan 4, 2024
1 parent 348774a commit 62d54b0
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Lib/fontTools/varLib/interpolatable.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,6 @@ def grand_parent(i, glyphname):
size1 = m1Vec[0] * m1Vec[0]
midSize = midVector[0] * midVector[0]

power = 1
t = tolerance**power

for overweight, problem_type in enumerate(
(
InterpolatableProblem.UNDERWEIGHT,
Expand All @@ -405,13 +402,9 @@ def grand_parent(i, glyphname):
) or (overweight and 1e-5 + expectedSize / tolerance < midSize):
try:
if overweight:
this_tolerance = (expectedSize / midSize) ** (
1 / power
)
this_tolerance = expectedSize / midSize
else:
this_tolerance = (midSize / expectedSize) ** (
1 / power
)
this_tolerance = midSize / expectedSize
except ZeroDivisionError:
this_tolerance = 0
log.debug("tolerance %g", this_tolerance)
Expand Down

0 comments on commit 62d54b0

Please sign in to comment.