From 546f3c3a7bd89a38cc758ea810835fd2d1e8bf27 Mon Sep 17 00:00:00 2001 From: James Protzman Date: Sat, 11 Jan 2020 22:56:03 -0500 Subject: [PATCH] remove unused function --- internal/transport/http_util.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/internal/transport/http_util.go b/internal/transport/http_util.go index 61fbf0a1e3e3..15e60013c6cc 100644 --- a/internal/transport/http_util.go +++ b/internal/transport/http_util.go @@ -222,14 +222,6 @@ func contentType(contentSubtype string) string { return baseContentType + "+" + contentSubtype } -func (d *decodeState) status() *status.Status { - if d.data.statusGen == nil { - // No status-details were provided; generate status using code/msg. - d.data.statusGen = status.New(codes.Code(int32(*(d.data.rawStatusCode))), d.data.rawStatusMsg) - } - return d.data.statusGen -} - const binHdrSuffix = "-bin" func encodeBinHeader(v []byte) string {