diff --git a/control-operator/internal/controller/task_controller.go b/control-operator/internal/controller/task_controller.go index a9a486a4..3cfe8db7 100644 --- a/control-operator/internal/controller/task_controller.go +++ b/control-operator/internal/controller/task_controller.go @@ -26,7 +26,6 @@ package controller import ( "context" - "encoding/json" "fmt" "reflect" "strings" @@ -451,12 +450,3 @@ func (r *TaskReconciler) recordCondition(ctx context.Context, t *aliecsv1alpha1. r.Recorder.Event(t, eventType, reason, message) return r.Status().Patch(ctx, t, patch) } - -func prettyPrint(i any) string { - s, err := json.MarshalIndent(i, "", " ") - if err != nil { - // If marshalling fails, return a simple error string - return "failed to pretty-print object" - } - return string(s) -}