From 4e93229ab0daa1f58339acfc4b0b68c29e28ec38 Mon Sep 17 00:00:00 2001 From: Jendrik Seipp Date: Sun, 24 Nov 2024 20:10:04 +0100 Subject: [PATCH] Fix format. --- vulture/core.py | 1 - vulture/reachability.py | 4 ---- 2 files changed, 5 deletions(-) diff --git a/vulture/core.py b/vulture/core.py index 1c589e31..48e14af6 100644 --- a/vulture/core.py +++ b/vulture/core.py @@ -630,7 +630,6 @@ def visit_MatchClass(self, node): self.used_names.add(kwd_attr) def visit(self, node): - # Visit children nodes first to allow recursive reachability analysis. self.generic_visit(node) diff --git a/vulture/reachability.py b/vulture/reachability.py index 2463c581..b12cf2f3 100644 --- a/vulture/reachability.py +++ b/vulture/reachability.py @@ -64,7 +64,6 @@ def _can_fall_through_statements_analysis(self, statements): return True def _handle_reachability_if(self, node): - has_else = bool(node.orelse) if utils.condition_is_always_false(node.test): @@ -82,7 +81,6 @@ def _handle_reachability_if(self, node): ) elif utils.condition_is_always_true(node.test): - if_can_fall_through = self._can_fall_through_statements_analysis( node.body ) @@ -143,7 +141,6 @@ def _handle_reachability_if_expr(self, node): ) def _handle_reachability_while(self, node): - if utils.condition_is_always_false(node.test): self._report( name="while", @@ -167,7 +164,6 @@ def _handle_reachability_while(self, node): self._can_fall_through_statements_analysis(node.body) def _handle_reachability_try(self, node): - try_can_fall_through = self._can_fall_through_statements_analysis( node.body )