Remove unnecessary Container.changes function.

Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 6ea9a880dc434446c072ac23b1cab89ec3652140
Component: engine
This commit is contained in:
David Calavera
2015-11-04 12:27:48 -05:00
parent b52340d649
commit 6943fc8dc1
2 changed files with 3 additions and 7 deletions
+3 -1
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)
}
-6
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