1
0
mirror of https://github.com/golang/go synced 2024-11-26 03:57: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:
ChaiShushan 2013-07-02 17:29:21 -07:00 committed by Brad Fitzpatrick
parent 7e767791b9
commit 456f6df96a

View File

@ -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)