Merge pull request #12988 from Mashimiao/remove-unused-container-functions
cleanup: remove unneeded locks Upstream-commit: 340fd140e67901c8b5ad9d59c6fb693f6bbcffde Component: engine
This commit is contained in:
@@ -1053,16 +1053,11 @@ func (container *Container) Exposes(p nat.Port) bool {
|
||||
}
|
||||
|
||||
func (container *Container) HostConfig() *runconfig.HostConfig {
|
||||
container.Lock()
|
||||
res := container.hostConfig
|
||||
container.Unlock()
|
||||
return res
|
||||
return container.hostConfig
|
||||
}
|
||||
|
||||
func (container *Container) SetHostConfig(hostConfig *runconfig.HostConfig) {
|
||||
container.Lock()
|
||||
container.hostConfig = hostConfig
|
||||
container.Unlock()
|
||||
}
|
||||
|
||||
func (container *Container) DisableLink(name string) {
|
||||
|
||||
Reference in New Issue
Block a user