Skip to content
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

Merged
merged 2 commits into from
Apr 20, 2018
Merged

misc: Remove some dead code #4833

merged 2 commits into from
Apr 20, 2018

Conversation

magik6k
Copy link
Member

@magik6k magik6k commented Mar 19, 2018

No description provided.

@magik6k magik6k requested a review from Kubuxu as a code owner March 19, 2018 00:23
@ghost ghost assigned magik6k Mar 19, 2018
@ghost ghost added the status/in-progress In progress label Mar 19, 2018
Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@@ -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) {
Copy link
Member

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) {
Copy link
Member

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.

@@ -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) {
Copy link
Member

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.

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"
Copy link
Member

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

@magik6k magik6k force-pushed the misc/remove-dead-code branch 2 times, most recently from 482fb2a to 028bc03 Compare March 20, 2018 15:40
@Stebalien
Copy link
Member

Will need to be merged last and rebased (conflicts)

@Kubuxu Kubuxu added RFM status/blocked Unable to be worked further until needs are met and removed status/in-progress In progress RFM status/blocked Unable to be worked further until needs are met labels Mar 20, 2018
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
@ghost ghost added the status/in-progress In progress label Mar 21, 2018
@magik6k
Copy link
Member Author

magik6k commented Mar 21, 2018

rebased

@Kubuxu Kubuxu added RFM status/blocked Unable to be worked further until needs are met and removed status/in-progress In progress labels Mar 23, 2018
@whyrusleeping
Copy link
Member

What is this blocked on?

@Kubuxu Kubuxu removed the status/blocked Unable to be worked further until needs are met label Apr 8, 2018
@Kubuxu
Copy link
Member

Kubuxu commented Apr 8, 2018

It was blocked to prevent merge conflicts.

@whyrusleeping whyrusleeping merged commit c225c34 into master Apr 20, 2018
@whyrusleeping whyrusleeping deleted the misc/remove-dead-code branch April 20, 2018 14:40
ariescodescream pushed a commit to ariescodescream/go-ipfs that referenced this pull request Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants