From d1a791cb94e826c3f3386a0d6ebb5817f486910a Mon Sep 17 00:00:00 2001
From: Steven Allen <steven@stebalien.com>
Date: Wed, 20 Feb 2019 15:45:35 -0800
Subject: [PATCH] fix(bitswap): remove CancelWants function

Fixes #50.
---
 bitswap.go | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/bitswap.go b/bitswap.go
index 28c1589b..94dec9ac 100644
--- a/bitswap.go
+++ b/bitswap.go
@@ -239,14 +239,6 @@ func (bs *Bitswap) GetBlocks(ctx context.Context, keys []cid.Cid) (<-chan blocks
 	return session.GetBlocks(ctx, keys)
 }
 
-// CancelWants removes a given key from the wantlist.
-func (bs *Bitswap) CancelWants(cids []cid.Cid, ses uint64) {
-	if len(cids) == 0 {
-		return
-	}
-	bs.wm.CancelWants(context.Background(), cids, nil, ses)
-}
-
 // HasBlock announces the existence of a block to this bitswap service. The
 // service will potentially notify its peers.
 func (bs *Bitswap) HasBlock(blk blocks.Block) error {