From 10111ef76a23897e814d3c3b1e6e159e2cbc3d90 Mon Sep 17 00:00:00 2001 From: SimoneDutto Date: Fri, 6 Dec 2024 11:22:40 +0100 Subject: [PATCH] remove dial model function --- internal/jimm/utils.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/internal/jimm/utils.go b/internal/jimm/utils.go index c97cdf225..1e8387178 100644 --- a/internal/jimm/utils.go +++ b/internal/jimm/utils.go @@ -68,13 +68,3 @@ func (j *JIMM) dialController(ctx context.Context, ctl *dbmodel.Controller) (API } return api, nil } - -// dialModel dials a model. -func (j *JIMM) dialModel(ctx context.Context, ctl *dbmodel.Controller, mt names.ModelTag) (API, error) { - api, err := j.dial(ctx, ctl, mt) - if err != nil { - zapctx.Error(ctx, "failed to dial the controller", zaputil.Error(err)) - return nil, err - } - return api, nil -}