Skip to content

Commit

Permalink
refactor: remove unused code
Browse files Browse the repository at this point in the history
This commit was moved from ipfs/go-bitswap@312b40b
  • Loading branch information
dirkmc committed Aug 23, 2019
1 parent 7b35cbb commit 31cffd7
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions bitswap/sessionmanager/sessionmanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,24 +89,6 @@ func requestSplitterFactory(ctx context.Context) bssession.RequestSplitter {
return &fakeRequestSplitter{}
}

func cmpSessionCids(s *fakeSession, cids []cid.Cid) bool {
if len(s.ks) != len(cids) {
return false
}
for _, bk := range s.ks {
has := false
for _, c := range cids {
if c == bk {
has = true
}
}
if !has {
return false
}
}
return true
}

func TestAddingSessions(t *testing.T) {
ctx := context.Background()
ctx, cancel := context.WithCancel(ctx)
Expand Down

0 comments on commit 31cffd7

Please sign in to comment.