File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
src/MySqlConnector/Utilities Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -56,16 +56,6 @@ public UnixEndPoint(string filename)
56
56
57
57
public override EndPoint Create ( SocketAddress socketAddress )
58
58
{
59
- /*
60
- * Should also check this
61
- *
62
- int addr = (int) AddressFamily.Unix;
63
- if (socketAddress [0] != (addr & 0xFF))
64
- throw new ArgumentException ("socketAddress is not a unix socket address.");
65
- if (socketAddress [1] != ((addr & 0xFF00) >> 8))
66
- throw new ArgumentException ("socketAddress is not a unix socket address.");
67
- */
68
-
69
59
if ( socketAddress . Size == 2 ) {
70
60
// Empty filename.
71
61
// Probably from RemoteEndPoint which on linux does not return the file name.
@@ -103,6 +93,6 @@ public override SocketAddress Serialize()
103
93
104
94
public override int GetHashCode ( ) => Filename . GetHashCode ( ) ;
105
95
106
- public override bool Equals ( object ? o ) => o is UnixEndPoint other && Filename == other . Filename ;
96
+ public override bool Equals ( object ? obj ) => obj is UnixEndPoint other && Filename == other . Filename ;
107
97
}
108
98
}
You can’t perform that action at this time.
0 commit comments