From af3059855c0b59c08b115a70d3f61b0fab3270de Mon Sep 17 00:00:00 2001 From: Qiang Huang Date: Wed, 22 Jul 2015 10:32:31 +0800 Subject: [PATCH] Remove unused parameter in NewTtyConsole It's introduced in 68ba5f0b69c9f38 (Execdriver implementation on new libcontainer API) But I don't see reson why we need it. Signed-off-by: Qiang Huang --- daemon/execdriver/native/driver.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/execdriver/native/driver.go b/daemon/execdriver/native/driver.go index af7291e4aa..a94de3d18f 100644 --- a/daemon/execdriver/native/driver.go +++ b/daemon/execdriver/native/driver.go @@ -361,7 +361,7 @@ type TtyConsole struct { console libcontainer.Console } -func NewTtyConsole(console libcontainer.Console, pipes *execdriver.Pipes, rootuid int) (*TtyConsole, error) { +func NewTtyConsole(console libcontainer.Console, pipes *execdriver.Pipes) (*TtyConsole, error) { tty := &TtyConsole{ console: console, } @@ -417,7 +417,7 @@ func setupPipes(container *configs.Config, processConfig *execdriver.ProcessConf if err != nil { return err } - term, err = NewTtyConsole(cons, pipes, rootuid) + term, err = NewTtyConsole(cons, pipes) } else { p.Stdout = pipes.Stdout p.Stderr = pipes.Stderr