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);
|
errdefer alc.free(cached_nodes);
|
||||||
for (nodes, 0..) |node, i| {
|
for (nodes, 0..) |node, i| {
|
||||||
cached_nodes[i] = try node.clone(self.allocator);
|
cached_nodes[i] = try node.clone(self.allocator);
|
||||||
std.debug.print("clonou {any}\n", .{cached_nodes[i]});
|
|
||||||
}
|
}
|
||||||
try self.cache.add(ck, nodes);
|
try self.cache.add(ck, nodes);
|
||||||
}
|
}
|
||||||
|
|
@ -140,7 +139,6 @@ pub const Renderer = struct {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Qualquer outra coisa no base
|
|
||||||
try self.renderNode(alloc, child_nodes, base_node, writer, null, null);
|
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;
|
const value = self.context.get(expr) orelse Value.null;
|
||||||
return switch (value) {
|
return switch (value) {
|
||||||
.bool => |b| b,
|
.bool => |b| b,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue