From 8d7f3837856c8703b91cdfd6f8221f385cc18a3f Mon Sep 17 00:00:00 2001 From: yuzhiquan Date: Wed, 8 Jan 2020 16:57:02 +0800 Subject: [PATCH] cleanup(api-machinery): remove unused struct and variable --- pkg/registry/core/pod/strategy.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pkg/registry/core/pod/strategy.go b/pkg/registry/core/pod/strategy.go index e7ea508d7a4..5e4451233cd 100644 --- a/pkg/registry/core/pod/strategy.go +++ b/pkg/registry/core/pod/strategy.go @@ -143,18 +143,6 @@ func (podStrategy) CheckGracefulDelete(ctx context.Context, obj runtime.Object, return true } -type podStrategyWithoutGraceful struct { - podStrategy -} - -// CheckGracefulDelete prohibits graceful deletion. -func (podStrategyWithoutGraceful) CheckGracefulDelete(ctx context.Context, obj runtime.Object, options *metav1.DeleteOptions) bool { - return false -} - -// StrategyWithoutGraceful implements the legacy instant delete behavior. -var StrategyWithoutGraceful = podStrategyWithoutGraceful{Strategy} - type podStatusStrategy struct { podStrategy }