Skip to content

Commit cd94b9f

Browse files
committed
Remove dead code from Auto{Height,Width}Char
1 parent 04c8eef commit cd94b9f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/_mathtext.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,7 +1528,7 @@ class AutoHeightChar(Hlist):
15281528
"""
15291529

15301530
def __init__(self, c: str, height: float, depth: float, state: ParserState,
1531-
always: bool = False, factor: float | None = None):
1531+
factor: float | None = None):
15321532
alternatives = state.fontset.get_sized_alternatives_for_symbol(state.font, c)
15331533

15341534
x_height = state.fontset.get_xheight(state.font, state.fontsize, state.dpi)
@@ -1565,7 +1565,7 @@ class AutoWidthChar(Hlist):
15651565
always just return a scaled version of the glyph.
15661566
"""
15671567

1568-
def __init__(self, c: str, width: float, state: ParserState, always: bool = False,
1568+
def __init__(self, c: str, width: float, state: ParserState,
15691569
char_class: type[Char] = Char):
15701570
alternatives = state.fontset.get_sized_alternatives_for_symbol(state.font, c)
15711571

@@ -2703,7 +2703,7 @@ def sqrt(self, toks: ParseResults) -> T.Any:
27032703
# the height so it doesn't seem cramped
27042704
height = body.height - body.shift_amount + 5 * thickness
27052705
depth = body.depth + body.shift_amount
2706-
check = AutoHeightChar(r'\__sqrt__', height, depth, state, always=True)
2706+
check = AutoHeightChar(r'\__sqrt__', height, depth, state)
27072707
height = check.height - check.shift_amount
27082708
depth = check.depth + check.shift_amount
27092709

0 commit comments

Comments
 (0)