Remove unused function Container.getImage
.
Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
parent
6ea9a880dc
commit
89decc4446
1 changed files with 0 additions and 8 deletions
|
@ -20,7 +20,6 @@ import (
|
|||
"github.com/docker/docker/daemon/logger/jsonfilelog"
|
||||
"github.com/docker/docker/daemon/network"
|
||||
derr "github.com/docker/docker/errors"
|
||||
"github.com/docker/docker/image"
|
||||
"github.com/docker/docker/pkg/archive"
|
||||
"github.com/docker/docker/pkg/broadcaster"
|
||||
"github.com/docker/docker/pkg/fileutils"
|
||||
|
@ -286,13 +285,6 @@ func (container *Container) Resize(h, w int) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (container *Container) getImage() (*image.Image, error) {
|
||||
if container.daemon == nil {
|
||||
return nil, derr.ErrorCodeImageUnregContainer
|
||||
}
|
||||
return container.daemon.graph.Get(container.ImageID)
|
||||
}
|
||||
|
||||
func (container *Container) hostConfigPath() (string, error) {
|
||||
return container.getRootResourcePath("hostconfig.json")
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue