Skip to content

Commit 9ce269f

Browse files
authored
Merge pull request #4146 from thaJeztah/remove_deprecated_bits
remove various deprecated types and functions
2 parents 966e191 + 66a1c3b commit 9ce269f

5 files changed

Lines changed: 0 additions & 39 deletions

File tree

cli/command/formatter/context.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,3 @@ func (c *clientContextContext) Error() string {
8484
// TODO(thaJeztah) add "--no-trunc" option to context ls and set default to 30 cols to match "docker service ps"
8585
return Ellipsis(c.c.Error, maxErrLength)
8686
}
87-
88-
// KubernetesEndpoint returns the kubernetes endpoint.
89-
//
90-
// Deprecated: support for kubernetes endpoints in contexts has been removed, and this formatting option will always be empty.
91-
func (c *clientContextContext) KubernetesEndpoint() string {
92-
return ""
93-
}

cli/config/configfile/file.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ type ConfigFile struct {
3737
PruneFilters []string `json:"pruneFilters,omitempty"`
3838
Proxies map[string]ProxyConfig `json:"proxies,omitempty"`
3939
Experimental string `json:"experimental,omitempty"`
40-
StackOrchestrator string `json:"stackOrchestrator,omitempty"` // Deprecated: swarm is now the default orchestrator, and this option is ignored.
4140
CurrentContext string `json:"currentContext,omitempty"`
4241
CLIPluginsExtraDirs []string `json:"cliPluginsExtraDirs,omitempty"`
4342
Plugins map[string]map[string]string `json:"plugins,omitempty"`

cli/context/docker/load.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ type EndpointMeta = context.EndpointMetaBase
2525
type Endpoint struct {
2626
EndpointMeta
2727
TLSData *context.TLSData
28-
29-
// Deprecated: Use of encrypted TLS private keys has been deprecated, and
30-
// will be removed in a future release. Golang has deprecated support for
31-
// legacy PEM encryption (as specified in RFC 1423), as it is insecure by
32-
// design (see https://go-review.googlesource.com/c/go/+/264159).
33-
TLSPassword string
3428
}
3529

3630
// WithTLSData loads TLS materials for the endpoint

cli/context/store/store.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -494,20 +494,6 @@ func importEndpointTLS(tlsData *ContextTLSData, path string, data []byte) error
494494
return nil
495495
}
496496

497-
// IsErrContextDoesNotExist checks if the given error is a "context does not exist" condition.
498-
//
499-
// Deprecated: use github.com/docker/docker/errdefs.IsNotFound()
500-
func IsErrContextDoesNotExist(err error) bool {
501-
return errdefs.IsNotFound(err)
502-
}
503-
504-
// IsErrTLSDataDoesNotExist checks if the given error is a "context does not exist" condition
505-
//
506-
// Deprecated: use github.com/docker/docker/errdefs.IsNotFound()
507-
func IsErrTLSDataDoesNotExist(err error) bool {
508-
return errdefs.IsNotFound(err)
509-
}
510-
511497
type contextdir string
512498

513499
func contextdirOf(name string) contextdir {

cli/flags/options_deprecated.go

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)