Remove dead code
This commit is contained in:
parent
40235cbdbb
commit
58015dcd64
@ -366,20 +366,6 @@ pub fn isPublic(tree: *ast.Tree, node: *ast.Node) bool {
|
|||||||
return false;
|
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 {
|
pub fn nodeToString(tree: *ast.Tree, node: *ast.Node) ?[]const u8 {
|
||||||
switch (node.id) {
|
switch (node.id) {
|
||||||
.ContainerField => {
|
.ContainerField => {
|
||||||
|
Loading…
Reference in New Issue
Block a user