1
0
Fork 0
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:
David Calavera 2015-11-02 20:14:09 -05:00
parent 3a49765046
commit 6ea9a880dc
2 changed files with 3 additions and 7 deletions

View file

@ -9,5 +9,7 @@ func (daemon *Daemon) ContainerChanges(name string) ([]archive.Change, error) {
return nil, err
}
return container.changes()
container.Lock()
defer container.Unlock()
return daemon.changes(container)
}

View file

@ -286,12 +286,6 @@ func (container *Container) Resize(h, w int) error {
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) {
if container.daemon == nil {
return nil, derr.ErrorCodeImageUnregContainer