Skip to content

Commit c02b88b

Browse files
authored
removes unused registry helper functions (#2748)
removes unused functions Signed-off-by: Chris Burns <[email protected]>
1 parent 7e261db commit c02b88b

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

cmd/thv-operator/api/v1alpha1/mcpregistry_types.go

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -392,27 +392,6 @@ func (r *MCPRegistry) GetAPIResourceName() string {
392392
return fmt.Sprintf("%s-api", r.Name)
393393
}
394394

395-
// IsConfigMapRegistrySource returns true if any registry source is a configmap
396-
func (r *MCPRegistry) IsConfigMapRegistrySource() bool {
397-
for _, registry := range r.Spec.Registries {
398-
if registry.ConfigMapRef != nil {
399-
return true
400-
}
401-
}
402-
return false
403-
}
404-
405-
// GetConfigMapSourceName returns the name of the first configmap source
406-
// if present, otherwise returns an empty string
407-
func (r *MCPRegistry) GetConfigMapSourceName() string {
408-
for _, registry := range r.Spec.Registries {
409-
if registry.ConfigMapRef != nil {
410-
return registry.ConfigMapRef.Name
411-
}
412-
}
413-
return ""
414-
}
415-
416395
// DeriveOverallPhase determines the overall MCPRegistry phase based on sync and API status
417396
func (r *MCPRegistry) DeriveOverallPhase() MCPRegistryPhase {
418397
syncStatus := r.Status.SyncStatus

0 commit comments

Comments
 (0)