diff options
Diffstat (limited to 'src/Network/Tox/Onion/Handlers.hs')
-rw-r--r-- | src/Network/Tox/Onion/Handlers.hs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/Network/Tox/Onion/Handlers.hs b/src/Network/Tox/Onion/Handlers.hs index 0c137bf5..3eec0390 100644 --- a/src/Network/Tox/Onion/Handlers.hs +++ b/src/Network/Tox/Onion/Handlers.hs | |||
@@ -242,14 +242,6 @@ sendOnion getTimeout client req oaddr unwrap = | |||
242 | $ join mb | 242 | $ join mb |
243 | 243 | ||
244 | -- | Lookup the secret counterpart for a given alias key. | 244 | -- | Lookup the secret counterpart for a given alias key. |
245 | selectAlias :: TransportCrypto -> NodeId -> STM AliasSelector | ||
246 | selectAlias crypto pkey = do | ||
247 | ks <- filter (\(sk,pk) -> pk == id2key pkey) | ||
248 | <$> readTVar (userKeys crypto) | ||
249 | maybe (return SearchingAlias) | ||
250 | (return . uncurry AnnouncingAlias) | ||
251 | (listToMaybe ks) | ||
252 | |||
253 | getRendezvous :: (TransactionId -> OnionDestination r -> STM (OnionDestination r, Int)) | 245 | getRendezvous :: (TransactionId -> OnionDestination r -> STM (OnionDestination r, Int)) |
254 | -> TransportCrypto | 246 | -> TransportCrypto |
255 | -> Client r | 247 | -> Client r |