◐ Shell
clean mode source ↗

enum: remove unused function by methane · Pull Request #132044 · python/cpython

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

History: _dedent was added in #30582 (then briefly reverted in #30632 and re-added in #30637) in v3.11.0a5.

Then its use was removed in #94188 in v3.12.0a1 but the function not removed.

I think it's safe to remove the function: it wasn't documented, was underscore prefixed, is very similar to textwrap.dedent() which should be the first choice, and I don't find any use of _dedent on GitHub code search.