remove dead code

This commit is contained in:
iamqizhao 2015-09-29 19:08:55 -07:00
parent ef43a528c1
commit a27bb5b14a
2 changed files with 0 additions and 6 deletions

View File

@ -421,7 +421,6 @@ func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer) {
func _TestService_UnaryCall_Handler(srv interface{}, ctx context.Context, decodeFunc func([]byte, interface{}) error, buf []byte) (interface{}, error) {
in := new(SimpleRequest)
//if err := codec.Unmarshal(buf, in); err != nil {
if err := decodeFunc(buf, in); err != nil {
return nil, err
}

View File

@ -320,11 +320,6 @@ func (s *Server) processUnaryRPC(t transport.ServerTransport, stream *transport.
}
return err
}
//if traceInfo.tr != nil {
// TODO: set payload.msg to something that
// prints usefully with %s; req is a []byte.
//traceInfo.tr.LazyLog(&payload{sent: false}, true)
//}
switch pf {
case compressionNone:
statusCode := codes.OK