Skip to content

Commit db2e47b

Browse files
committed
removing warnings.
1 parent 77ee187 commit db2e47b

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

Network/Socket/Shutdown.hs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ import qualified Control.Exception as E
1212
import Foreign.Marshal.Alloc (mallocBytes, free)
1313

1414
import Control.Concurrent (threadDelay)
15-
#if !defined(mingw32_HOST_OS)
16-
import Control.Concurrent (tryPutMVar, takeMVar, newEmptyMVar)
17-
import qualified GHC.Event as Ev
18-
import System.Posix.Types (Fd(..))
19-
#endif
2015

2116
import Network.Socket.Buffer
2217
import Network.Socket.Imports
@@ -45,10 +40,6 @@ shutdown s stype = void $ withFdSocket s $ \fd ->
4540
foreign import CALLCONV unsafe "shutdown"
4641
c_shutdown :: CInt -> CInt -> IO CInt
4742

48-
#if !defined(mingw32_HOST_OS)
49-
data Wait = MoreData | TimeoutTripped
50-
#endif
51-
5243
-- | Closing a socket gracefully.
5344
-- This sends TCP FIN and check if TCP FIN is received from the peer.
5445
-- The second argument is time out to receive TCP FIN in millisecond.

0 commit comments

Comments
 (0)