Skip to content

Commit 844b500

Browse files
committed
Remove unused code in Socket (#373)
***NO_CI*** (cherry picked from commit 719b49d)
1 parent 13db3b6 commit 844b500

1 file changed

Lines changed: 0 additions & 23 deletions

File tree

‎nanoFramework.System.Net/Sockets/Socket.cs‎

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,6 @@ public class Socket : IDisposable
3636
[Diagnostics.DebuggerBrowsable(Diagnostics.DebuggerBrowsableState.Never)]
3737
private SocketType _socketType = SocketType.Unknown;
3838

39-
// Our internal state doesn't automatically get updated after a non-blocking connect
40-
// completes. Keep track of whether we're doing a non-blocking connect, and make sure
41-
// to poll for the real state until we're done connecting.
42-
[Diagnostics.DebuggerBrowsable(Diagnostics.DebuggerBrowsableState.Never)]
43-
private bool _nonBlockingConnectInProgress;
44-
45-
// Keep track of the kind of endpoint used to do a non-blocking connect, so we can set
46-
// it to m_RightEndPoint when we discover we're connected.
47-
[Diagnostics.DebuggerBrowsable(Diagnostics.DebuggerBrowsableState.Never)]
48-
private EndPoint _nonBlockingConnectRightEndPoint;
49-
5039
// _rightEndPoint is null if the socket has not been bound. Otherwise, it is any EndPoint of the correct type (IPEndPoint, etc).
5140
[Diagnostics.DebuggerBrowsable(Diagnostics.DebuggerBrowsableState.Never)]
5241
internal EndPoint _rightEndPoint;
@@ -329,18 +318,6 @@ public void Connect(EndPoint remoteEP)
329318
EndPoint endPointSnapshot = remoteEP;
330319
Snapshot(ref endPointSnapshot);
331320

332-
if (m_fBlocking)
333-
{
334-
// blocking connect
335-
_nonBlockingConnectInProgress = false;
336-
}
337-
else
338-
{
339-
// non blocking connect
340-
_nonBlockingConnectInProgress = true;
341-
_nonBlockingConnectRightEndPoint = endPointSnapshot;
342-
}
343-
344321
NativeSocket.connect(this, endPointSnapshot, !m_fBlocking);
345322

346323
if (m_fBlocking)

0 commit comments

Comments
 (0)