eliminate expr resolution hook in eval visualization layer; now succeeded by irgen hook

This commit is contained in:
Ryan Fleury
2025-02-02 12:46:59 -08:00
parent 07c9268941
commit 5bbd9f1c7e
7 changed files with 21 additions and 327 deletions
@@ -9,11 +9,6 @@
////////////////////////////////
//~ rjf: Nil/Identity View Rule Hooks
EV_VIEW_RULE_EXPR_RESOLUTION_FUNCTION_DEF(identity)
{
return expr;
}
EV_VIEW_RULE_EXPR_EXPAND_INFO_FUNCTION_DEF(nil)
{
EV_ExpandInfo info = {0};
@@ -656,14 +651,6 @@ ev_resolved_from_expr(Arena *arena, E_Expr *expr, EV_ViewRuleList *view_rules)
}
scratch_end(scratch);
}
for(EV_ViewRuleNode *n = view_rules->first; n != 0; n = n->next)
{
EV_ViewRuleInfo *info = ev_view_rule_info_from_string(n->v.root->string);
if(info->expr_resolution != 0)
{
expr = info->expr_resolution(arena, expr, n->v.root);
}
}
ProfEnd();
return expr;
}