Skip to content

Commit

Permalink
Remove unused code (#49)
Browse files Browse the repository at this point in the history
* Remove unused code
* remove more
* update version
  • Loading branch information
gammazero authored Jul 31, 2023
1 parent cbe0830 commit 59492fc
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 15 deletions.
5 changes: 0 additions & 5 deletions pkg/adpub/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
type Client interface {
GetAdvertisement(context.Context, cid.Cid) (*Advertisement, error)
Close() error
ClearStore()
Distance(context.Context, cid.Cid, cid.Cid) (int, cid.Cid, error)
List(context.Context, cid.Cid, int, io.Writer) error
SyncEntriesWithRetry(context.Context, cid.Cid) error
Expand Down Expand Up @@ -268,7 +267,3 @@ func (c *client) findNextMissingChunkLink(ctx context.Context, next cid.Cid) (ci
func (c *client) Close() error {
return c.sub.Close()
}

func (c *client) ClearStore() {
c.store.clear()
}
4 changes: 0 additions & 4 deletions pkg/adpub/client_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,3 @@ func (s *ClientStore) list(ctx context.Context, nextCid cid.Cid, n int, w io.Wri
}
return nil
}

func (s *ClientStore) clear() {
s.Batching = dssync.MutexWrap(datastore.NewMapDatastore())
}
5 changes: 0 additions & 5 deletions pkg/adpub/count_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,3 @@ func newCountStore() *CountStore {
func (s *CountStore) distance() int {
return s.count
}

func (s *CountStore) clear() {
s.count = 0
panic("hre")
}
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "v0.0.8"
"version": "v0.0.9"
}

0 comments on commit 59492fc

Please sign in to comment.