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 -}