瀏覽代碼

Remove useless SetContext function in client.go

Djordje Lukic 5 年之前
父節點
當前提交
c4a260369b
共有 1 個文件被更改,包括 0 次插入15 次删除
  1. 0 15
      client/client.go

+ 0 - 15
client/client.go

@@ -69,21 +69,6 @@ type Client struct {
 	cc          containers.ContainerService
 	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 {
 func (c *Client) ContainerService() containers.ContainerService {
 	return c.cc
 	return c.cc
 }
 }