From a48703350587c46fec82389ad23f2dc16452a5ae Mon Sep 17 00:00:00 2001 From: aarifullin Date: Thu, 26 Oct 2023 10:25:39 +0300 Subject: [PATCH] [#121] client: Nuke out unused prmCommonMeta Signed-off-by: Airat Arifullin a.arifullin@yadro.com --- client/common.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/client/common.go b/client/common.go index ac9feb0..0df1806 100644 --- a/client/common.go +++ b/client/common.go @@ -24,24 +24,6 @@ func (x statusRes) Status() apistatus.Status { return x.st } -// groups meta parameters shared between all Client operations. -type prmCommonMeta struct { - // FrostFS request X-Headers - xHeaders []string -} - -// WithXHeaders specifies list of extended headers (string key-value pairs) -// to be attached to the request. Must have an even length. -// -// Slice must not be mutated until the operation completes. -func (x *prmCommonMeta) WithXHeaders(hs ...string) { - if len(hs)%2 != 0 { - panic("slice of X-Headers with odd length") - } - - x.xHeaders = hs -} - func writeXHeadersToMeta(xHeaders []string, h *v2session.RequestMetaHeader) { if len(xHeaders) == 0 { return