Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
advikkabra authored and czgdp1807 committed May 17, 2024
1 parent ceb89dd commit 8116732
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/lpython/semantics/python_ast_to_asr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2569,10 +2569,6 @@ class CommonVisitor : public AST::BaseVisitor<Struct> {
std::string var_name = v_variable->m_name;
ASR::ttype_t* type = v_variable->m_type;
if (!init_expr && ASR::is_a<ASR::Dict_t>(*type)) {
ASR::ttype_t *key_type = ASR::down_cast<ASR::Dict_t>(type)->m_key_type;
ASR::ttype_t *value_type = ASR::down_cast<ASR::Dict_t>(type)->m_value_type;
ASR::ttype_t *dict_type = ASRUtils::TYPE(ASR::make_Dict_t(al, loc,
key_type, value_type));
init_expr = ASRUtils::EXPR(ASR::make_DictConstant_t(al, loc,
nullptr, 0, nullptr, 0, type));
}
Expand Down

0 comments on commit 8116732

Please sign in to comment.