update: cleanup
This commit is contained in:
parent
1e94763ba1
commit
c14a92e7ab
1 changed files with 1 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue