From 558b31a5e9fcd81cfd8557a20eff9c1946688985 Mon Sep 17 00:00:00 2001 From: "M. Habib Rosyad" Date: Tue, 18 Aug 2020 14:10:12 +0700 Subject: [PATCH] fix vendor/k8s.io/apimachinery/pkg/runtime staticcheck --- hack/.staticcheck_failures | 1 - staging/src/k8s.io/apimachinery/pkg/runtime/scheme.go | 6 ------ 2 files changed, 7 deletions(-) diff --git a/hack/.staticcheck_failures b/hack/.staticcheck_failures index 4966589dcc4..84003c63092 100644 --- a/hack/.staticcheck_failures +++ b/hack/.staticcheck_failures @@ -12,7 +12,6 @@ test/integration/ttlcontroller vendor/k8s.io/apimachinery/pkg/api/apitesting/roundtrip vendor/k8s.io/apimachinery/pkg/api/meta vendor/k8s.io/apimachinery/pkg/apis/meta/v1/validation -vendor/k8s.io/apimachinery/pkg/runtime vendor/k8s.io/apimachinery/pkg/runtime/serializer/json vendor/k8s.io/apimachinery/pkg/util/httpstream/spdy vendor/k8s.io/apimachinery/pkg/util/net diff --git a/staging/src/k8s.io/apimachinery/pkg/runtime/scheme.go b/staging/src/k8s.io/apimachinery/pkg/runtime/scheme.go index 7a1e70663dd..fc87e72d080 100644 --- a/staging/src/k8s.io/apimachinery/pkg/runtime/scheme.go +++ b/staging/src/k8s.io/apimachinery/pkg/runtime/scheme.go @@ -133,12 +133,6 @@ func (s *Scheme) nameFunc(t reflect.Type) string { return gvks[0].Kind } -// fromScope gets the input version, desired output version, and desired Scheme -// from a conversion.Scope. -func (s *Scheme) fromScope(scope conversion.Scope) *Scheme { - return s -} - // Converter allows access to the converter for the scheme func (s *Scheme) Converter() *conversion.Converter { return s.converter