From c4a260369b570dbffba09dc175859ae7b32db292 Mon Sep 17 00:00:00 2001 From: Djordje Lukic Date: Thu, 30 Apr 2020 12:44:55 +0200 Subject: [PATCH] Remove useless SetContext function in client.go --- client/client.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/client/client.go b/client/client.go index 9a8571020..d8b7baf31 100644 --- a/client/client.go +++ b/client/client.go @@ -69,21 +69,6 @@ type Client struct { cc containers.ContainerService } -func (c *Client) SetContext(ctx context.Context, contextType string) error { - b, err := backend.Get(ctx, contextType) - if err != nil { - return err - } - - ba, ok := b.(containers.ContainerService) - if !ok { - return errors.New("unknown context type") - } - - c.cc = ba - return nil -} - func (c *Client) ContainerService() containers.ContainerService { return c.cc }