Skip to content

Commit e422def

Browse files
committed
Remove dead code from Auto{Height,Width}Char
1 parent 1b3ba17 commit e422def

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
@@ -1531,7 +1531,7 @@ class AutoHeightChar(Hlist):
15311531
"""
15321532

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

15371537
x_height = state.fontset.get_xheight(state.font, state.fontsize, state.dpi)
@@ -1568,7 +1568,7 @@ class AutoWidthChar(Hlist):
15681568
always just return a scaled version of the glyph.
15691569
"""
15701570

1571-
def __init__(self, c: str, width: float, state: ParserState, always: bool = False,
1571+
def __init__(self, c: str, width: float, state: ParserState,
15721572
char_class: type[Char] = Char):
15731573
alternatives = state.fontset.get_sized_alternatives_for_symbol(state.font, c)
15741574

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

0 commit comments

Comments
 (0)