mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 0 additions and 1 deletions
|
|
@ -258,7 +258,6 @@ func (server *Server) register(rcvr interface{}, name string, useName bool) erro
|
|||
return errors.New("rpc: service already defined: " + sname)
|
||||
}
|
||||
s.name = sname
|
||||
s.method = make(map[string]*methodType)
|
||||
|
||||
// Install the methods
|
||||
s.method = suitableMethods(s.typ, true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue