diff --git a/pylint/utils/ast_walker.py b/pylint/utils/ast_walker.py index 2e7be0677b..cefb48e669 100644 --- a/pylint/utils/ast_walker.py +++ b/pylint/utils/ast_walker.py @@ -75,10 +75,6 @@ def walk(self, astroid: nodes.NodeNG) -> None: """ cid = astroid.__class__.__name__.lower() - # Detect if the node is a new name for a deprecated alias. - # In this case, favour the methods for the deprecated - # alias if any, in order to maintain backwards - # compatibility. visit_events: Sequence[AstCallback] = self.visit_events.get(cid, ()) leave_events: Sequence[AstCallback] = self.leave_events.get(cid, ())