Commit 7546ed29 authored by Anthony Sottile's avatar Anthony Sottile Committed by Jelle Zijlstra
Browse files

delete some dead code (#669)

dead code detected via [dead](https://github.com/asottile/dead)

- **`KEYWORDS`**: introduced (unreferenced) in e74117f1
- **`FLOW_CONTROL`**: last referenced in e9a940d6

"clean" command:

```
dead --exclude '^(tests/data/|docs/conf.py|blib2to3/)' | grep -Ev '^(visit_.*|show|_stop_signal|lib2to3_unparse) '
```
parent 024c9cab
Loading
Loading
Loading
Loading
+0 −3
Changes for black.py: 0 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@
from functools import lru_cache, partial, wraps
import io
import itertools
import keyword
import logging
from multiprocessing import Manager, freeze_support
import os
@@ -777,9 +776,7 @@ def show(cls, code: Union[str, Leaf, Node]) -> None:
        list(v.visit(code))


KEYWORDS = set(keyword.kwlist)
WHITESPACE = {token.DEDENT, token.INDENT, token.NEWLINE}
FLOW_CONTROL = {"return", "raise", "break", "continue"}
STATEMENT = {
    syms.if_stmt,
    syms.while_stmt,