Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero committed Aug 11, 2023
1 parent a3dc0fa commit a93a7c3
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pkg/adpub/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ import (
"github.com/ipfs/go-cid"
"github.com/ipfs/go-datastore"
dssync "github.com/ipfs/go-datastore/sync"
"github.com/ipld/go-ipld-prime/datamodel"
"github.com/ipld/go-ipld-prime/node/basicnode"
"github.com/ipld/go-ipld-prime/traversal/selector"
"github.com/ipld/go-ipld-prime/traversal/selector/builder"
"github.com/ipni/go-libipni/dagsync"
"github.com/libp2p/go-libp2p"
"github.com/libp2p/go-libp2p/core/host"
Expand Down Expand Up @@ -75,14 +71,6 @@ func NewClient(addrInfo peer.AddrInfo, options ...Option) (Client, error) {
}, nil
}

func selectEntriesWithLimit(limit selector.RecursionLimit) datamodel.Node {
ssb := builder.NewSelectorSpecBuilder(basicnode.Prototype.Any)
return ssb.ExploreRecursive(limit, ssb.ExploreFields(
func(efsb builder.ExploreFieldsSpecBuilder) {
efsb.Insert("Next", ssb.ExploreRecursiveEdge())
})).Node()
}

func (c *client) Distance(ctx context.Context, oldestCid, newestCid cid.Cid) (int, cid.Cid, error) {
if oldestCid == cid.Undef {
return 0, cid.Undef, errors.New("must specify a oldest CID")
Expand Down

0 comments on commit a93a7c3

Please sign in to comment.