From f5e15548497ea99561704ddcb68f18fc2a268a4a Mon Sep 17 00:00:00 2001 From: Tanay Manerikar Date: Fri, 2 Aug 2024 19:25:31 +0530 Subject: [PATCH] refactor --- src/lpython/semantics/python_ast_to_asr.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/lpython/semantics/python_ast_to_asr.cpp b/src/lpython/semantics/python_ast_to_asr.cpp index 1621ff8a29..fad8029a00 100644 --- a/src/lpython/semantics/python_ast_to_asr.cpp +++ b/src/lpython/semantics/python_ast_to_asr.cpp @@ -5597,12 +5597,6 @@ class BodyVisitor : public CommonVisitor { overloaded)); if ( target->type == ASR::exprType::Var && tmp_value->type == ASR::exprType::StructConstructor ) { - Vec new_args; new_args.reserve(al, 1); - ASR::call_arg_t self_arg; - self_arg.loc = x.base.base.loc; - ASR::symbol_t* st = ASR::down_cast(target)->m_v; - self_arg.m_value = target; - new_args.push_back(al,self_arg); AST::Call_t* call = AST::down_cast(x.m_value); if ( call->n_keywords>0 ) { throw SemanticError("Kwargs not implemented yet", x.base.base.loc);