Skip to content

Commit 39ddbc8

Browse files
committed
cli/command: deprecate DockerCli.DefaultVersion
This function was used internally, but is no longer used. There are no known users of this method, so already removing it from the Cli interface. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 40fe242) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit aad9f7d) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 3755161 commit 39ddbc8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/command/cli.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ type Cli interface {
4949
config.Provider
5050
ServerInfo() ServerInfo
5151
DefaultVersion() string
52-
CurrentVersion() string
5352
ContentTrustEnabled() bool
5453
BuildKitEnabled() (bool, error)
5554
ContextStore() store.Store
@@ -90,6 +89,8 @@ type DockerCli struct {
9089
}
9190

9291
// DefaultVersion returns [api.DefaultVersion].
92+
//
93+
// Deprecated: this function is no longer used and will be removed in the next release.
9394
func (*DockerCli) DefaultVersion() string {
9495
return api.DefaultVersion
9596
}

0 commit comments

Comments
 (0)