From bc70548c470983b2299a6d29add41ea81f676d92 Mon Sep 17 00:00:00 2001 From: mantuliu <240951888@qq.com> Date: Tue, 14 Feb 2023 20:08:11 +0800 Subject: [PATCH] Remove unused code Signed-off-by: mantuliu <240951888@qq.com> --- .../apiserver/pkg/endpoints/discovery/storageversionhash.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/staging/src/k8s.io/apiserver/pkg/endpoints/discovery/storageversionhash.go b/staging/src/k8s.io/apiserver/pkg/endpoints/discovery/storageversionhash.go index d72d4ba207c..f47e9632b71 100644 --- a/staging/src/k8s.io/apiserver/pkg/endpoints/discovery/storageversionhash.go +++ b/staging/src/k8s.io/apiserver/pkg/endpoints/discovery/storageversionhash.go @@ -27,9 +27,6 @@ import ( // this function. func StorageVersionHash(group, version, kind string) string { gvk := group + "/" + version + "/" + kind - if gvk == "" { - return "" - } bytes := sha256.Sum256([]byte(gvk)) // Assuming there are N kinds in the cluster, and the hash is X-byte long, // the chance of colliding hash P(N,X) approximates to 1-e^(-(N^2)/2^(8X+1)).