From ff72ee7df74ea8e8783eb07751140e30de680394 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Wed, 20 Dec 2023 16:32:01 +0100 Subject: pgk/asset: don't use dashapi.NewMock() Define a pkg-only view of the required dashapi methods. --- dashboard/dashapi/dashapi.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'dashboard/dashapi') diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go index d31b78ba1..aaaf3edfa 100644 --- a/dashboard/dashapi/dashapi.go +++ b/dashboard/dashapi/dashapi.go @@ -40,12 +40,6 @@ func New(client, addr, key string) (*Dashboard, error) { return NewCustom(client, addr, key, http.NewRequest, http.DefaultClient.Do, nil, nil) } -func NewMock(mocker RequestMocker) *Dashboard { - return &Dashboard{ - mocker: mocker, - } -} - type ( RequestCtor func(method, url string, body io.Reader) (*http.Request, error) RequestDoer func(req *http.Request) (*http.Response, error) -- cgit mrf-deployment