]> Cypherpunks repositories - gostls13.git/commitdiff
net: consolidate multiple init functions
authorMikio Hara <mikioh.mikioh@gmail.com>
Fri, 9 Nov 2012 03:09:22 +0000 (12:09 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Fri, 9 Nov 2012 03:09:22 +0000 (12:09 +0900)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6819117

src/pkg/net/fd_unix.go

index 7f82f203e1de189b4e3f00b11e0a30fe6e8522d7..f2f5ffa2f1918f42ed3762da876ba602473ce7e7 100644 (file)
@@ -263,9 +263,6 @@ var startServersOnce []func()
 var canCancelIO = true // used for testing current package
 
 func sysInit() {
-}
-
-func init() {
        pollMaxN = runtime.NumCPU()
        if pollMaxN > 8 {
                pollMaxN = 8 // No improvement then.