From d6c0223ae2dee6672226f7dbd17e9d27c15e39ea Mon Sep 17 00:00:00 2001 From: Shijiang Wei Date: Thu, 17 Sep 2015 19:22:25 +0800 Subject: [PATCH] remove the unused run() and output() functions in daemon/container.go Signed-off-by: Shijiang Wei Upstream-commit: b79782e9516188e4c6e0d2e20d4a42d91f1c0c3c Component: engine --- components/engine/daemon/container.go | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/components/engine/daemon/container.go b/components/engine/daemon/container.go index dbc5458e96..7f280f4270 100644 --- a/components/engine/daemon/container.go +++ b/components/engine/daemon/container.go @@ -305,26 +305,6 @@ func (container *Container) Start() (err error) { return container.waitForStart() } -func (container *Container) run() error { - if err := container.Start(); err != nil { - return err - } - container.HasBeenStartedBefore = true - container.WaitStop(-1 * time.Second) - return nil -} - -func (container *Container) output() (output []byte, err error) { - pipe := container.StdoutPipe() - defer pipe.Close() - if err := container.Start(); err != nil { - return nil, err - } - output, err = ioutil.ReadAll(pipe) - container.WaitStop(-1 * time.Second) - return output, err -} - // streamConfig.StdinPipe returns a WriteCloser which can be used to feed data // to the standard input of the container's active process. // Container.StdoutPipe and Container.StderrPipe each return a ReadCloser