runconfig: remove deprecated IsPreDefinedNetwork

It was deprecated in d22d8a78f1, which is
part of v27.0, and is no longer in use.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2024-07-01 01:09:59 +02:00
parent ed712ad0b9
commit 4a30231d05
2 changed files with 0 additions and 15 deletions

View File

@@ -10,14 +10,6 @@ import (
"github.com/docker/docker/pkg/sysinfo"
)
// IsPreDefinedNetwork indicates if a network is predefined by the daemon
//
// Deprecated: this function is no longer used and will be removed in the next release.
func IsPreDefinedNetwork(network string) bool {
n := container.NetworkMode(network)
return n.IsBridge() || n.IsHost() || n.IsNone() || n.IsDefault()
}
// validateNetMode ensures that the various combinations of requested
// network settings are valid.
func validateNetMode(c *container.Config, hc *container.HostConfig) error {

View File

@@ -7,13 +7,6 @@ import (
"github.com/docker/docker/pkg/sysinfo"
)
// IsPreDefinedNetwork indicates if a network is predefined by the daemon.
//
// Deprecated: this function is no longer used and will be removed in the next release.
func IsPreDefinedNetwork(network string) bool {
return !container.NetworkMode(network).IsUserDefined()
}
// validateNetMode ensures that the various combinations of requested
// network settings are valid.
func validateNetMode(c *container.Config, hc *container.HostConfig) error {