Revert "delete ast_members from parser->locals when they were unused"

This reverts commit cdeffb6de9.
This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-18 16:20:23 +02:00
parent cdeffb6de9
commit d4587e5667

View file

@ -1668,11 +1668,6 @@ static void parser_pop_local(parser_t *parser)
{
parser->locals_count--;
mem_d(parser->locals[parser->locals_count].name);
if (!ast_usecount(parser->locals[parser->locals_count].var) &&
ast_istype(parser->locals[parser->locals_count].var, ast_member))
{
ast_delete(parser->locals[parser->locals_count].var);
}
}
static ast_block* parser_parse_block(parser_t *parser)