Browse Source

Merge pull request #44548 from thaJeztah/search_remove_id

registry: session: remove unused id
Sebastiaan van Stijn 2 years ago
parent
commit
86c76aa734
1 changed files with 0 additions and 3 deletions
  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/pkg/ioutils"
 	"github.com/docker/docker/pkg/jsonmessage"
-	"github.com/docker/docker/pkg/stringid"
 	"github.com/pkg/errors"
 	"github.com/sirupsen/logrus"
 )
@@ -24,7 +23,6 @@ import (
 type session struct {
 	indexEndpoint *v1Endpoint
 	client        *http.Client
-	id            string
 }
 
 type authTransport struct {
@@ -179,7 +177,6 @@ func newSession(client *http.Client, endpoint *v1Endpoint) *session {
 	return &session{
 		client:        client,
 		indexEndpoint: endpoint,
-		id:            stringid.GenerateRandomID(),
 	}
 }