Commit 456f6df9 authored by ChaiShushan's avatar ChaiShushan Committed by Brad Fitzpatrick

net/rpc: remove unnecessary code

Fixes #5760.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/10871043
parent 7e767791
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment