From fb699b7315449e5efc39ae1dcd93305b4a3d8c46 Mon Sep 17 00:00:00 2001 From: Kenichi Omichi Date: Wed, 6 Nov 2019 22:27:41 +0000 Subject: [PATCH] Remove unused skip functions This removes the following functions from e2e/framework/skip.go: - SkipUnlessTaintBasedEvictionsEnabled: Unused since 7e1794dcb1826ba8253064743ff021e85d69dfc3 - SkipIfContainerRuntimeIs: Unused since 19a588eeda50ffb452c15d3017d4872b12f0d916 --- test/e2e/framework/skip.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/test/e2e/framework/skip.go b/test/e2e/framework/skip.go index 60ff5f5254c..631fc51deb8 100644 --- a/test/e2e/framework/skip.go +++ b/test/e2e/framework/skip.go @@ -50,15 +50,6 @@ func SkipUnlessAtLeast(value int, minValue int, message string) { } } -// SkipIfContainerRuntimeIs skips if the container runtime is included in the runtimes. -func SkipIfContainerRuntimeIs(runtimes ...string) { - for _, containerRuntime := range runtimes { - if containerRuntime == TestContext.ContainerRuntime { - skipInternalf(1, "Not supported under container runtime %s", containerRuntime) - } - } -} - // SkipUnlessLocalEphemeralStorageEnabled skips if the LocalStorageCapacityIsolation is not enabled. func SkipUnlessLocalEphemeralStorageEnabled() { if !utilfeature.DefaultFeatureGate.Enabled(features.LocalStorageCapacityIsolation) { @@ -168,13 +159,6 @@ func SkipUnlessSSHKeyPresent() { } } -// SkipUnlessTaintBasedEvictionsEnabled skips if the TaintBasedEvictions is not enabled. -func SkipUnlessTaintBasedEvictionsEnabled() { - if !utilfeature.DefaultFeatureGate.Enabled(features.TaintBasedEvictions) { - skipInternalf(1, "Only supported when %v feature is enabled", features.TaintBasedEvictions) - } -} - // serverVersionGTE returns true if v is greater than or equal to the server // version. //