From eaaebaf6ee14736e5099ccff66001a2365d5c300 Mon Sep 17 00:00:00 2001 From: Balthasar Reuter Date: Wed, 3 May 2023 16:25:12 +0100 Subject: [PATCH] Eliminate another stray `current_node` argument --- loki/expression/expr_visitors.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/loki/expression/expr_visitors.py b/loki/expression/expr_visitors.py index bc2673954..fc3fcfde0 100644 --- a/loki/expression/expr_visitors.py +++ b/loki/expression/expr_visitors.py @@ -355,8 +355,6 @@ def visit(self, o, *args, **kwargs): Default visitor method that dispatches the node-specific handler """ kwargs.setdefault('scope', None) - if isinstance(o, Node): - kwargs['current_node'] = o return super().visit(o, *args, **kwargs) def visit_Expression(self, o, **kwargs):