mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Remove unnecessary Container.changes
function.
Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
parent
3a49765046
commit
6ea9a880dc
2 changed files with 3 additions and 7 deletions
|
@ -9,5 +9,7 @@ func (daemon *Daemon) ContainerChanges(name string) ([]archive.Change, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return container.changes()
|
container.Lock()
|
||||||
|
defer container.Unlock()
|
||||||
|
return daemon.changes(container)
|
||||||
}
|
}
|
||||||
|
|
|
@ -286,12 +286,6 @@ func (container *Container) Resize(h, w int) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (container *Container) changes() ([]archive.Change, error) {
|
|
||||||
container.Lock()
|
|
||||||
defer container.Unlock()
|
|
||||||
return container.daemon.changes(container)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (container *Container) getImage() (*image.Image, error) {
|
func (container *Container) getImage() (*image.Image, error) {
|
||||||
if container.daemon == nil {
|
if container.daemon == nil {
|
||||||
return nil, derr.ErrorCodeImageUnregContainer
|
return nil, derr.ErrorCodeImageUnregContainer
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue