Skip to content

Commit 92f9349

Browse files
committed
Remove xforms
1 parent 80e2bc2 commit 92f9349

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

curtsies/formatstring.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@
6969
"bg": lambda s, v: seq(v) + s + seq(RESET_BG),
7070
}
7171

72-
# TODO unused, remove this in next major release
73-
xforms: MutableMapping[str, Union[Callable[[str], str], Callable[[str, int], str]]] = {}
74-
xforms.update(one_arg_xforms)
75-
xforms.update(two_arg_xforms)
76-
7772

7873
class FrozenAttributes(Dict[str, Union[int, bool]]):
7974
"""Immutable dictionary class for format string attributes"""
@@ -147,7 +142,7 @@ def color_str(self) -> str:
147142
s = self._s
148143
for k, v in sorted(self._atts.items()):
149144
# (self.atts sorted for the sake of always acting the same.)
150-
if k not in xforms:
145+
if k not in one_arg_xforms and k not in two_arg_xforms:
151146
# Unsupported SGR code
152147
continue
153148
elif v is False:

0 commit comments

Comments
 (0)