From 04d477ab565ba089cc952cafb6e23c18a981f5cf Mon Sep 17 00:00:00 2001 From: tserg <8017125+tserg@users.noreply.github.com> Date: Wed, 27 Sep 2023 23:31:45 +0800 Subject: [PATCH] remove dead code --- vyper/semantics/analysis/module.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/vyper/semantics/analysis/module.py b/vyper/semantics/analysis/module.py index 1f785701b0..c9372f8f46 100644 --- a/vyper/semantics/analysis/module.py +++ b/vyper/semantics/analysis/module.py @@ -90,12 +90,6 @@ def __init__( if not derived_nodes: break - # attach temporary namespace with constants to the module for - # typechecking - _ns = Namespace() - _ns._constants = self.namespace._constants - module_node._metadata["namespace"] = _ns - while module_nodes: count = len(module_nodes) err_list = ExceptionList()