Skip to content

Commit 7c8a35c

Browse files
committed
cli/command: remove deprecated DockerCli.Apply
The Apply method was added when CLI options for constructing the CLI were rewritten into functional options in [cli@7f207f3]. There was no mention in the pull request of this method specifically, and this may have been related to work being done elsewhere on compose-on-kubernetes or the compose-cli plugin that may have needed options to modify the CLI config after it was already initialized. The CLI itself no longer depends on this method since [cli@133279f], and there are no known external users. It was deprecated in [cli@24bfedf], which is included in the 28.5.0 release, so we can remove it for 29.0. [cli@7f207f3]: 7f207f3 [cli@133279f]: 133279f [cli@24bfedf]: 24bfedf Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent b0cb640 commit 7c8a35c

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

cli/command/cli.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -566,18 +566,6 @@ func (cli *DockerCli) initialize() error {
566566
return cli.initErr
567567
}
568568

569-
// Apply all the operation on the cli
570-
//
571-
// Deprecated: this method is no longer used and will be removed in the next release if there are no remaining users.
572-
func (cli *DockerCli) Apply(ops ...CLIOption) error {
573-
for _, op := range ops {
574-
if err := op(cli); err != nil {
575-
return err
576-
}
577-
}
578-
return nil
579-
}
580-
581569
// ServerInfo stores details about the supported features and platform of the
582570
// server
583571
type ServerInfo struct {

0 commit comments

Comments
 (0)