From 31cffd71fcb91fdcf9c5c899dc9dfa9d16004e7b Mon Sep 17 00:00:00 2001 From: Dirk McCormick Date: Fri, 23 Aug 2019 09:34:04 -0400 Subject: [PATCH] refactor: remove unused code This commit was moved from ipfs/go-bitswap@312b40bae0b61bda59184475212f3ac4904079c8 --- bitswap/sessionmanager/sessionmanager_test.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/bitswap/sessionmanager/sessionmanager_test.go b/bitswap/sessionmanager/sessionmanager_test.go index dfd3446c1..95c12b128 100644 --- a/bitswap/sessionmanager/sessionmanager_test.go +++ b/bitswap/sessionmanager/sessionmanager_test.go @@ -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)