Skip to content

Commit 592afa8

Browse files
committed
cli/command: remove deprecated DockerCli.ContentTrustEnabled
This function was used internally, but is no longer used. Users should check the value of the `DOCKER_CONTENT_TRUST` environment variable instead. This method was deprecated in 11d4048, which was included in the 28.5.0 release, and has no known external users, so removing it for 29.0 Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent f369c5b commit 592afa8

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

cli/command/cli.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,6 @@ func (cli *DockerCli) ServerInfo() ServerInfo {
157157
return cli.serverInfo
158158
}
159159

160-
// ContentTrustEnabled returns whether content trust has been enabled by an
161-
// environment variable.
162-
//
163-
// Deprecated: check the value of the DOCKER_CONTENT_TRUST environment variable to detect whether content-trust is enabled.
164-
func (cli *DockerCli) ContentTrustEnabled() bool {
165-
return cli.contentTrust
166-
}
167-
168160
// BuildKitEnabled returns buildkit is enabled or not.
169161
func (cli *DockerCli) BuildKitEnabled() (bool, error) {
170162
// use DOCKER_BUILDKIT env var value if set and not empty

0 commit comments

Comments
 (0)