update: cleanup

This commit is contained in:
Lucas F. 2026-01-14 14:20:25 -03:00
parent 1e94763ba1
commit c14a92e7ab

View file

@ -102,7 +102,6 @@ pub const Renderer = struct {
errdefer alc.free(cached_nodes);
for (nodes, 0..) |node, i| {
cached_nodes[i] = try node.clone(self.allocator);
std.debug.print("clonou {any}\n", .{cached_nodes[i]});
}
try self.cache.add(ck, nodes);
}
@ -140,7 +139,6 @@ pub const Renderer = struct {
}
}
} else {
// Qualquer outra coisa no base
try self.renderNode(alloc, child_nodes, base_node, writer, null, null);
}
}
@ -279,7 +277,7 @@ pub const Renderer = struct {
}
}
fn evaluateCondition(self: *const Renderer, expr: []const u8) !bool {
fn evaluateCondition_bkp(self: *const Renderer, expr: []const u8) RenderError!bool {
const value = self.context.get(expr) orelse Value.null;
return switch (value) {
.bool => |b| b,