enum: remove unused function (#132044)

This commit is contained in:
Inada Naoki 2025-04-08 09:23:48 +09:00 committed by GitHub
parent f5639d87f5
commit e2b35ee229
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -150,18 +150,6 @@ def bin(num, max_bits=None):
digits = (sign[-1] * max_bits + digits)[-max_bits:]
return "%s %s" % (sign, digits)
def _dedent(text):
"""
Like textwrap.dedent. Rewritten because we cannot import textwrap.
"""
lines = text.split('\n')
for i, ch in enumerate(lines[0]):
if ch != ' ':
break
for j, l in enumerate(lines):
lines[j] = l[i:]
return '\n'.join(lines)
class _not_given:
def __repr__(self):
return('<not given>')