Skip to content

Commit 5944f40

Browse files
committed
HighPerformanceHooks: Remove dead code ShouldCPUQuotaBeDisabled
Signed-off-by: Andreas Karis <[email protected]>
1 parent a22b5da commit 5944f40

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

internal/runtimehandlerhooks/high_performance_hooks_linux.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,19 +1056,6 @@ func RestoreIrqBalanceConfig(ctx context.Context, irqBalanceConfigFile, irqBanne
10561056
return nil
10571057
}
10581058

1059-
func ShouldCPUQuotaBeDisabled(ctx context.Context, cid string, cSpec *specs.Spec, s *sandbox.Sandbox, annotations fields.Set) bool {
1060-
if !shouldRunHooks(ctx, cid, cSpec, s) {
1061-
return false
1062-
}
1063-
1064-
if annotations[crioannotations.CPUQuotaAnnotation] == annotationTrue {
1065-
log.Warnf(ctx, "%s", annotationValueDeprecationWarning(crioannotations.CPUQuotaAnnotation))
1066-
}
1067-
1068-
return annotations[crioannotations.CPUQuotaAnnotation] == annotationTrue ||
1069-
annotations[crioannotations.CPUQuotaAnnotation] == annotationDisable
1070-
}
1071-
10721059
func shouldRunHooks(ctx context.Context, id string, cSpec *specs.Spec, s *sandbox.Sandbox) bool {
10731060
if isCgroupParentBurstable(s) {
10741061
log.Infof(ctx, "Container %q is a burstable pod. Skip PreStart.", id)

0 commit comments

Comments
 (0)