Remove unused function (#1173)
This commit is contained in:
parent
4a0f68bfe3
commit
27563c4378
|
|
@ -588,17 +588,6 @@ func (r *RunnerReconciler) processRunnerCreation(ctx context.Context, runner v1a
|
||||||
return ctrl.Result{}, nil
|
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) {
|
func (r *RunnerReconciler) updateRegistrationToken(ctx context.Context, runner v1alpha1.Runner) (bool, error) {
|
||||||
if runner.IsRegisterable() {
|
if runner.IsRegisterable() {
|
||||||
return false, nil
|
return false, nil
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue