Skip to content

Commit

Permalink
Removed not used methods
Browse files Browse the repository at this point in the history
  • Loading branch information
satr committed Oct 8, 2024
1 parent fb3e3d1 commit 8c90c45
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
8 changes: 0 additions & 8 deletions pkg/apis/applicationconfig/applicationconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"reflect"
"strings"

"github.com/equinor/radix-common/utils/slice"
"github.com/equinor/radix-operator/pkg/apis/config/dnsalias"
"github.com/equinor/radix-operator/pkg/apis/kube"
radixv1 "github.com/equinor/radix-operator/pkg/apis/radix/v1"
Expand Down Expand Up @@ -152,10 +151,3 @@ func (app *ApplicationConfig) OnSync(ctx context.Context) error {

return nil
}

func (app *ApplicationConfig) getAppEnvNames() map[string]struct{} {
return slice.Reduce(app.config.Spec.Environments, make(map[string]struct{}), func(acc map[string]struct{}, env radixv1.Environment) map[string]struct{} {
acc[env.Name] = struct{}{}
return acc
})
}
7 changes: 0 additions & 7 deletions pkg/apis/applicationconfig/applicationconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -674,13 +674,6 @@ func Test_IsConfigBranch(t *testing.T) {
})
}

func convertToEnvMap(environmentList *radixv1.RadixEnvironmentList) map[string]radixv1.RadixEnvironment {
return slice.Reduce(environmentList.Items, make(map[string]radixv1.RadixEnvironment), func(acc map[string]radixv1.RadixEnvironment, environment radixv1.RadixEnvironment) map[string]radixv1.RadixEnvironment {
acc[environment.Spec.EnvName] = environment
return acc
})
}

func rrAsOwnerReference(rr *radixv1.RadixRegistration) []metav1.OwnerReference {
trueVar := true
return []metav1.OwnerReference{
Expand Down

0 comments on commit 8c90c45

Please sign in to comment.