Remove dead code

This commit is contained in:
SuperAuguste 2020-05-14 12:16:06 -04:00
parent 40235cbdbb
commit 58015dcd64

View File

@ -366,20 +366,6 @@ pub fn isPublic(tree: *ast.Tree, node: *ast.Node) bool {
return false;
}
pub fn getCompletionsFromNode(allocator: *std.mem.Allocator, tree: *ast.Tree, node: *ast.Node) ![]*ast.Node {
var nodes = std.ArrayList(*ast.Node).init(allocator);
var index: usize = 0;
while (node.iterate(index)) |child_node| {
if (isPublic(tree, node))
try nodes.append(child_node);
index += 1;
}
return nodes.items;
}
pub fn nodeToString(tree: *ast.Tree, node: *ast.Node) ?[]const u8 {
switch (node.id) {
.ContainerField => {