From c48f244bee15531cb39ab2d736472cc8898c0d56 Mon Sep 17 00:00:00 2001 From: bcmmbaga Date: Fri, 26 Jul 2024 17:47:02 +0300 Subject: [PATCH] Remove unused isPolicyRuleGroupsEmpty --- management/server/policy.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/management/server/policy.go b/management/server/policy.go index ca5146a5d..4aac5c53d 100644 --- a/management/server/policy.go +++ b/management/server/policy.go @@ -575,13 +575,3 @@ func getPostureChecks(account *Account, postureChecksID string) *posture.Checks } return nil } - -// isPolicyRuleGroupsEmpty checks if a given policy has rules with empty sources and destinations. -func isPolicyRuleGroupsEmpty(policy *Policy) bool { - for _, rule := range policy.Rules { - if len(rule.Sources) != 0 && len(rule.Destinations) != 0 { - return false - } - } - return true -}