-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
misc: Remove some dead code #4833
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
core/commands/pin.go
Outdated
@@ -539,7 +539,7 @@ func pinLsKeys(args []string, typeStr string, ctx context.Context, n *core.IpfsN | |||
return keys, nil | |||
} | |||
|
|||
func pinLsAll(typeStr string, ctx context.Context, n *core.IpfsNode) (map[string]RefKeyObject, error) { | |||
func pinLsAll(typeStr string, n *core.IpfsNode) (map[string]RefKeyObject, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of removing this context, I'd use it and pass it to the EnumerateChildren
call.
ipld "gx/ipfs/Qme5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES/go-ipld-format" | ||
|
||
bal "github.com/ipfs/go-ipfs/importer/balanced" | ||
h "github.com/ipfs/go-ipfs/importer/helpers" | ||
trickle "github.com/ipfs/go-ipfs/importer/trickle" | ||
) | ||
|
||
// BuildDagFromFile builds a DAG from the given file, writing created blocks to | ||
// disk as they are created. | ||
func BuildDagFromFile(fpath string, ds ipld.DAGService) (ipld.Node, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While not currently used, I wouldn't necessarily delete this. It's not that much code and may be useful.
On the other hand... stating and then opening is racy.
unixfs/test/utils.go
Outdated
@@ -104,32 +102,3 @@ func ArrComp(a, b []byte) error { | |||
} | |||
return nil | |||
} | |||
|
|||
// PrintDag pretty-prints the given dag to stdout. | |||
func PrintDag(nd *mdag.ProtoNode, ds ipld.DAGService, indent int) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd leave this. Looks useful for debugging.
1250882
to
79d35ba
Compare
core/commands/filestore.go
Outdated
cmds "gx/ipfs/QmabLouZTZwhfALuBcssPvkzhbYGMb4394huT7HY4LQ6d3/go-ipfs-cmds" | ||
cid "gx/ipfs/QmcZfnkapfECQGcLZaf9B79NRg7cRa9EnZh4LSbkCzwNvY/go-cid" | ||
"gx/ipfs/QmceUdzxkimdYsgtX733uNgzf1DLHyBKN6ehGSp85ayppM/go-ipfs-cmdkit" | ||
|
||
lgc "github.com/ipfs/go-ipfs/commands/legacy" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong spot for this import
482fb2a
to
028bc03
Compare
Will need to be merged last and rebased (conflicts) |
License: MIT Signed-off-by: Łukasz Magiera <[email protected]>
License: MIT Signed-off-by: Łukasz Magiera <[email protected]>
028bc03
to
bfdfb8d
Compare
rebased |
What is this blocked on? |
It was blocked to prevent merge conflicts. |
misc: Remove some dead code
No description provided.