Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-merkledag
Commits
16f01dad
Commit
16f01dad
authored
Apr 20, 2018
by
Whyrusleeping
Committed by
GitHub
Apr 20, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4833 from ipfs/misc/remove-dead-code
misc: Remove some dead code
parents
1f96eae2
b6ee1b42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
merkledag.go
merkledag.go
+0
-12
No files found.
merkledag.go
View file @
16f01dad
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment