diff --git a/controllers/runner_controller.go b/controllers/runner_controller.go index 39391575..e4b09a87 100644 --- a/controllers/runner_controller.go +++ b/controllers/runner_controller.go @@ -588,17 +588,6 @@ func (r *RunnerReconciler) processRunnerCreation(ctx context.Context, runner v1a return ctrl.Result{}, nil } -// unregisterRunner unregisters the runner from GitHub Actions by name. -// -// This function returns: -// - (true, nil) when it has successfully unregistered the runner. -// - (false, nil) when the runner has been already unregistered. -// - (false, err) when it postponed unregistration due to the runner being busy, or it tried to unregister the runner but failed due to -// an error returned by GitHub API. -func (r *RunnerReconciler) unregisterRunner(ctx context.Context, enterprise, org, repo, name string) (bool, error) { - return unregisterRunner(ctx, r.GitHubClient, enterprise, org, repo, name, nil) -} - func (r *RunnerReconciler) updateRegistrationToken(ctx context.Context, runner v1alpha1.Runner) (bool, error) { if runner.IsRegisterable() { return false, nil