diff --git a/daemon/execdriver/driver.go b/daemon/execdriver/driver.go index d5f4aa98d1..bd2e24cd08 100644 --- a/daemon/execdriver/driver.go +++ b/daemon/execdriver/driver.go @@ -39,10 +39,6 @@ type Terminal interface { Resize(height, width int) error } -type TtyTerminal interface { - Master() libcontainer.Console -} - // ExitStatus provides exit reasons for a container. type ExitStatus struct { // The exit code with which the container exited. diff --git a/daemon/execdriver/lxc/driver.go b/daemon/execdriver/lxc/driver.go index 73e96e4cd7..a3a9e0c6c8 100644 --- a/daemon/execdriver/lxc/driver.go +++ b/daemon/execdriver/lxc/driver.go @@ -808,10 +808,6 @@ func NewTtyConsole(processConfig *execdriver.ProcessConfig, pipes *execdriver.Pi return tty, nil } -func (t *TtyConsole) Master() *os.File { - return t.MasterPty -} - func (t *TtyConsole) Resize(h, w int) error { return term.SetWinsize(t.MasterPty.Fd(), &term.Winsize{Height: uint16(h), Width: uint16(w)}) } diff --git a/daemon/execdriver/native/driver.go b/daemon/execdriver/native/driver.go index 4573d94629..af7291e4aa 100644 --- a/daemon/execdriver/native/driver.go +++ b/daemon/execdriver/native/driver.go @@ -374,10 +374,6 @@ func NewTtyConsole(console libcontainer.Console, pipes *execdriver.Pipes, rootui return tty, nil } -func (t *TtyConsole) Master() libcontainer.Console { - return t.console -} - func (t *TtyConsole) Resize(h, w int) error { return term.SetWinsize(t.console.Fd(), &term.Winsize{Height: uint16(h), Width: uint16(w)}) }