瀏覽代碼

registry: session: remove unused id

This removes the dependency on github.com/docker/docker/pkg/stringid

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 2 年之前
父節點
當前提交
a44f547343
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      registry/session.go

+ 0 - 3
registry/session.go

@@ -15,7 +15,6 @@ import (
 	"github.com/docker/docker/errdefs"
 	"github.com/docker/docker/errdefs"
 	"github.com/docker/docker/pkg/ioutils"
 	"github.com/docker/docker/pkg/ioutils"
 	"github.com/docker/docker/pkg/jsonmessage"
 	"github.com/docker/docker/pkg/jsonmessage"
-	"github.com/docker/docker/pkg/stringid"
 	"github.com/pkg/errors"
 	"github.com/pkg/errors"
 	"github.com/sirupsen/logrus"
 	"github.com/sirupsen/logrus"
 )
 )
@@ -24,7 +23,6 @@ import (
 type session struct {
 type session struct {
 	indexEndpoint *v1Endpoint
 	indexEndpoint *v1Endpoint
 	client        *http.Client
 	client        *http.Client
-	id            string
 }
 }
 
 
 type authTransport struct {
 type authTransport struct {
@@ -179,7 +177,6 @@ func newSession(client *http.Client, endpoint *v1Endpoint) *session {
 	return &session{
 	return &session{
 		client:        client,
 		client:        client,
 		indexEndpoint: endpoint,
 		indexEndpoint: endpoint,
-		id:            stringid.GenerateRandomID(),
 	}
 	}
 }
 }