mirror of
https://github.com/golang/go
synced 2024-11-26 03:17:57 -07:00
net/rpc: remove unnecessary code
Fixes #5760. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/10871043
This commit is contained in:
parent
7e767791b9
commit
456f6df96a
@ -258,7 +258,6 @@ func (server *Server) register(rcvr interface{}, name string, useName bool) erro
|
|||||||
return errors.New("rpc: service already defined: " + sname)
|
return errors.New("rpc: service already defined: " + sname)
|
||||||
}
|
}
|
||||||
s.name = sname
|
s.name = sname
|
||||||
s.method = make(map[string]*methodType)
|
|
||||||
|
|
||||||
// Install the methods
|
// Install the methods
|
||||||
s.method = suitableMethods(s.typ, true)
|
s.method = suitableMethods(s.typ, true)
|
||||||
|
Loading…
Reference in New Issue
Block a user