summaryrefslogtreecommitdiff
path: root/src/Network
diff options
context:
space:
mode:
authorJoe Crayne <joe@jerkface.net>2018-09-07 12:10:57 -0400
committerJoe Crayne <joe@jerkface.net>2018-09-07 13:18:56 -0400
commitb3b228adf6fd71c089f4d3525b2bc3a6257f7f76 (patch)
treea6da817110e93a39b17b35502fd71fab679ca7b5 /src/Network
parentb94122bfb91a37bb141fdff05573cc02fd93c942 (diff)
Removed unused arguments to setEstablished/setTerminated.
Diffstat (limited to 'src/Network')
-rw-r--r--src/Network/Tox.hs2
-rw-r--r--src/Network/Tox/ContactInfo.hs8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/Network/Tox.hs b/src/Network/Tox.hs
index 7011618c..c1cdb151 100644
--- a/src/Network/Tox.hs
+++ b/src/Network/Tox.hs
@@ -379,7 +379,7 @@ mkDefaultDestroyHook roster = \session -> do
379 ++ ") failure. (Still have sessions: [" 379 ++ ") failure. (Still have sessions: ["
380 ++ Data.List.intercalate "," (map showsession relevantSessions) 380 ++ Data.List.intercalate "," (map showsession relevantSessions)
381 ++ "]" 381 ++ "]"
382 _ -> Right <$> setTerminated now (ncTheirPublicKey session) account 382 _ -> Right <$> setTerminated (ncTheirPublicKey session) account
383 Nothing -> return . Left $ "(defaultDestroyHook) their is no account! pubkey=" ++ show (key2id (ncTheirPublicKey session)) 383 Nothing -> return . Left $ "(defaultDestroyHook) their is no account! pubkey=" ++ show (key2id (ncTheirPublicKey session))
384 case r of 384 case r of
385 Left msg -> dput XMan msg 385 Left msg -> dput XMan msg
diff --git a/src/Network/Tox/ContactInfo.hs b/src/Network/Tox/ContactInfo.hs
index 5f144057..387a6e47 100644
--- a/src/Network/Tox/ContactInfo.hs
+++ b/src/Network/Tox/ContactInfo.hs
@@ -116,12 +116,12 @@ setContactAddr now remoteUserKey addr acc = do
116 Nothing -> update >> notify -- or if we don't have any 116 Nothing -> update >> notify -- or if we don't have any
117 _ -> return () -- otherwise just wait 117 _ -> return () -- otherwise just wait
118 118
119setEstablished :: POSIXTime -> PublicKey -> Account extra -> STM () 119setEstablished :: PublicKey -> Account extra -> STM ()
120setEstablished now remoteUserKey acc = 120setEstablished remoteUserKey acc =
121 writeTChan (eventChan acc) $ SessionEstablished remoteUserKey 121 writeTChan (eventChan acc) $ SessionEstablished remoteUserKey
122 122
123setTerminated :: POSIXTime -> PublicKey -> Account extra -> STM () 123setTerminated :: PublicKey -> Account extra -> STM ()
124setTerminated now remoteUserKey acc = 124setTerminated remoteUserKey acc =
125 writeTChan (eventChan acc) $ SessionTerminated remoteUserKey 125 writeTChan (eventChan acc) $ SessionTerminated remoteUserKey
126 126
127 127