summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/Client
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2014-04-04 01:07:46 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2014-04-04 01:07:46 +0400
commitc3e85d6baeba53168ed9dd2157f9b8f70bb1532d (patch)
treeabb0f0f67d5416436ae611098ead3559682155e6 /src/Network/BitTorrent/Client
parentde1fee157b87b62161ac68f32bd6e72ba9a11275 (diff)
[Client] remove comment stubs
Diffstat (limited to 'src/Network/BitTorrent/Client')
-rw-r--r--src/Network/BitTorrent/Client/Handle.hs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/Network/BitTorrent/Client/Handle.hs b/src/Network/BitTorrent/Client/Handle.hs
index 5bcb2d33..6e2dd0dc 100644
--- a/src/Network/BitTorrent/Client/Handle.hs
+++ b/src/Network/BitTorrent/Client/Handle.hs
@@ -38,7 +38,6 @@ import Network.BitTorrent.Tracker as Tracker
38-- Safe handle set manupulation 38-- Safe handle set manupulation
39-----------------------------------------------------------------------} 39-----------------------------------------------------------------------}
40 40
41-- | Guarantees that we newer allocate the same handle twice.
42allocHandle :: InfoHash -> BitTorrent Handle -> BitTorrent Handle 41allocHandle :: InfoHash -> BitTorrent Handle -> BitTorrent Handle
43allocHandle ih m = do 42allocHandle ih m = do
44 c @ Client {..} <- getClient 43 c @ Client {..} <- getClient
@@ -49,7 +48,6 @@ allocHandle ih m = do
49 h <- runBitTorrent c m 48 h <- runBitTorrent c m
50 return (HM.insert ih h handles, h) 49 return (HM.insert ih h handles, h)
51 50
52-- |
53freeHandle :: InfoHash -> BitTorrent () -> BitTorrent () 51freeHandle :: InfoHash -> BitTorrent () -> BitTorrent ()
54freeHandle ih finalizer = do 52freeHandle ih finalizer = do
55 c @ Client {..} <- getClient 53 c @ Client {..} <- getClient
@@ -60,7 +58,6 @@ freeHandle ih finalizer = do
60 runBitTorrent c finalizer 58 runBitTorrent c finalizer
61 return (HM.delete ih handles) 59 return (HM.delete ih handles)
62 60
63-- |
64lookupHandle :: InfoHash -> BitTorrent (Maybe Handle) 61lookupHandle :: InfoHash -> BitTorrent (Maybe Handle)
65lookupHandle ih = do 62lookupHandle ih = do
66 Client {..} <- getClient 63 Client {..} <- getClient