From e297616a483a19e7062338186f16bb00d023e709 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Wed, 3 May 2023 13:41:27 +0300 Subject: [PATCH] [#27] *: Resolve unused linter warnings Signed-off-by: Evgenii Stratonikov --- container/marshal.go | 6 +++--- container/test/generate.go | 6 +++--- netmap/marshal.go | 4 ++-- netmap/test/generate.go | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/container/marshal.go b/container/marshal.go index 98b32b4..a7c57aa 100644 --- a/container/marshal.go +++ b/container/marshal.go @@ -223,7 +223,7 @@ func (r *DeleteRequestBody) Unmarshal(data []byte) error { return message.Unmarshal(r, data, new(container.DeleteRequest_Body)) } -func (r *DeleteResponseBody) StableMarshal(buf []byte) []byte { +func (r *DeleteResponseBody) StableMarshal(_ []byte) []byte { return nil } @@ -391,7 +391,7 @@ func (r *SetExtendedACLRequestBody) Unmarshal(data []byte) error { return message.Unmarshal(r, data, new(container.SetExtendedACLRequest_Body)) } -func (r *SetExtendedACLResponseBody) StableMarshal(buf []byte) []byte { +func (r *SetExtendedACLResponseBody) StableMarshal(_ []byte) []byte { return nil } @@ -533,7 +533,7 @@ func (r *AnnounceUsedSpaceRequestBody) Unmarshal(data []byte) error { return message.Unmarshal(r, data, new(container.AnnounceUsedSpaceRequest_Body)) } -func (r *AnnounceUsedSpaceResponseBody) StableMarshal(buf []byte) []byte { +func (r *AnnounceUsedSpaceResponseBody) StableMarshal(_ []byte) []byte { return nil } diff --git a/container/test/generate.go b/container/test/generate.go index 00a0955..2b2afdf 100644 --- a/container/test/generate.go +++ b/container/test/generate.go @@ -170,7 +170,7 @@ func GenerateDeleteRequest(empty bool) *container.DeleteRequest { return m } -func GenerateDeleteResponseBody(empty bool) *container.DeleteResponseBody { +func GenerateDeleteResponseBody(_ bool) *container.DeleteResponseBody { m := new(container.DeleteResponseBody) return m @@ -260,7 +260,7 @@ func GenerateSetExtendedACLRequest(empty bool) *container.SetExtendedACLRequest return m } -func GenerateSetExtendedACLResponseBody(empty bool) *container.SetExtendedACLResponseBody { +func GenerateSetExtendedACLResponseBody(_ bool) *container.SetExtendedACLResponseBody { m := new(container.SetExtendedACLResponseBody) return m @@ -376,7 +376,7 @@ func GenerateAnnounceUsedSpaceRequest(empty bool) *container.AnnounceUsedSpaceRe return m } -func GenerateAnnounceUsedSpaceResponseBody(empty bool) *container.AnnounceUsedSpaceResponseBody { +func GenerateAnnounceUsedSpaceResponseBody(_ bool) *container.AnnounceUsedSpaceResponseBody { m := new(container.AnnounceUsedSpaceResponseBody) return m diff --git a/netmap/marshal.go b/netmap/marshal.go index 5c8cf35..f707665 100644 --- a/netmap/marshal.go +++ b/netmap/marshal.go @@ -275,7 +275,7 @@ func (ni *NodeInfo) Unmarshal(data []byte) error { return message.Unmarshal(ni, data, new(netmap.NodeInfo)) } -func (l *LocalNodeInfoRequestBody) StableMarshal(buf []byte) []byte { +func (l *LocalNodeInfoRequestBody) StableMarshal(_ []byte) []byte { return nil } @@ -432,7 +432,7 @@ func (i *NetworkInfo) Unmarshal(data []byte) error { return message.Unmarshal(i, data, new(netmap.NetworkInfo)) } -func (l *NetworkInfoRequestBody) StableMarshal(buf []byte) []byte { +func (l *NetworkInfoRequestBody) StableMarshal(_ []byte) []byte { return nil } diff --git a/netmap/test/generate.go b/netmap/test/generate.go index 8889bab..400d24c 100644 --- a/netmap/test/generate.go +++ b/netmap/test/generate.go @@ -144,7 +144,7 @@ func GenerateNodeInfo(empty bool) *netmap.NodeInfo { return m } -func GenerateLocalNodeInfoRequestBody(empty bool) *netmap.LocalNodeInfoRequestBody { +func GenerateLocalNodeInfoRequestBody(_ bool) *netmap.LocalNodeInfoRequestBody { m := new(netmap.LocalNodeInfoRequestBody) return m @@ -225,7 +225,7 @@ func GenerateNetworkInfo(empty bool) *netmap.NetworkInfo { return m } -func GenerateNetworkInfoRequestBody(empty bool) *netmap.NetworkInfoRequestBody { +func GenerateNetworkInfoRequestBody(_ bool) *netmap.NetworkInfoRequestBody { m := new(netmap.NetworkInfoRequestBody) return m