]> Cypherpunks repositories - gostls13.git/commit
net: remove redundant argument check from Dial on udp, unix networks
authorMikio Hara <mikioh.mikioh@gmail.com>
Thu, 22 Aug 2013 01:33:06 +0000 (10:33 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Thu, 22 Aug 2013 01:33:06 +0000 (10:33 +0900)
commit3b961bf88b80e350e9d97aa8fba361a10c3f8a7f
treeb88ecd3b1594fcf93b1055b9a201628961b767e4
parenta48702eb390325300ecc6222005e5a040d90d58f
net: remove redundant argument check from Dial on udp, unix networks

The net package consists of thin three layers like the follwoing;

- Exposed API, that contains net.Dial, net.DialUDP, net.DialUnix
- Socket and network file descriptor, that contains net.netFD and
  its methods, helper functions such as dialUDP, dialUnix
- Network pollster, that contains net.pollDesc and its methods

This CL removes redundant argument check which is already done by
API layer.

R=golang-dev, dave, bradfitz
CC=golang-dev
https://golang.org/cl/13092043
src/pkg/net/udpsock_posix.go
src/pkg/net/unixsock_posix.go