Commit 16f01dad authored by Whyrusleeping's avatar Whyrusleeping Committed by GitHub

Merge pull request #4833 from ipfs/misc/remove-dead-code

misc: Remove some dead code
parents 1f96eae2 b6ee1b42
...@@ -180,18 +180,6 @@ func FetchGraph(ctx context.Context, root *cid.Cid, serv ipld.DAGService) error ...@@ -180,18 +180,6 @@ func FetchGraph(ctx context.Context, root *cid.Cid, serv ipld.DAGService) error
return EnumerateChildrenAsync(ctx, GetLinksDirect(ng), root, visit) return EnumerateChildrenAsync(ctx, GetLinksDirect(ng), root, visit)
} }
// FindLinks searches this nodes links for the given key,
// returns the indexes of any links pointing to it
func FindLinks(links []*cid.Cid, c *cid.Cid, start int) []int {
var out []int
for i, lnkC := range links[start:] {
if c.Equals(lnkC) {
out = append(out, i+start)
}
}
return out
}
// GetMany gets many nodes from the DAG at once. // GetMany gets many nodes from the DAG at once.
// //
// This method may not return all requested nodes (and may or may not return an // This method may not return all requested nodes (and may or may not return an
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment