Skip to content

Commit 1b80bde

Browse files
committed
Remove dead code
1 parent ab7f8e9 commit 1b80bde

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/lpython/semantics/python_ast_to_asr.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2569,10 +2569,6 @@ class CommonVisitor : public AST::BaseVisitor<Struct> {
25692569
std::string var_name = v_variable->m_name;
25702570
ASR::ttype_t* type = v_variable->m_type;
25712571
if (!init_expr && ASR::is_a<ASR::Dict_t>(*type)) {
2572-
ASR::ttype_t *key_type = ASR::down_cast<ASR::Dict_t>(type)->m_key_type;
2573-
ASR::ttype_t *value_type = ASR::down_cast<ASR::Dict_t>(type)->m_value_type;
2574-
ASR::ttype_t *dict_type = ASRUtils::TYPE(ASR::make_Dict_t(al, loc,
2575-
key_type, value_type));
25762572
init_expr = ASRUtils::EXPR(ASR::make_DictConstant_t(al, loc,
25772573
nullptr, 0, nullptr, 0, type));
25782574
}

0 commit comments

Comments
 (0)