diff --git a/components/engine/api/client/events.go b/components/engine/api/client/events.go index ad38204368..d2408c192e 100644 --- a/components/engine/api/client/events.go +++ b/components/engine/api/client/events.go @@ -121,7 +121,6 @@ func printOutput(event eventtypes.Message, output io.Writer) { type eventHandler struct { handlers map[string]func(eventtypes.Message) mu sync.Mutex - closed bool } func (w *eventHandler) Handle(action string, h func(eventtypes.Message)) { diff --git a/components/engine/daemon/execdriver/native/driver.go b/components/engine/daemon/execdriver/native/driver.go index 6e74124b19..fb7ef26271 100644 --- a/components/engine/daemon/execdriver/native/driver.go +++ b/components/engine/daemon/execdriver/native/driver.go @@ -123,11 +123,6 @@ func NewDriver(root string, options []string) (*Driver, error) { }, nil } -type execOutput struct { - exitCode int - err error -} - // Run implements the exec driver Driver interface, // it calls libcontainer APIs to run a container. func (d *Driver) Run(c *execdriver.Command, pipes *execdriver.Pipes, hooks execdriver.Hooks) (execdriver.ExitStatus, error) { diff --git a/components/engine/daemon/logger/jsonfilelog/jsonfilelog.go b/components/engine/daemon/logger/jsonfilelog/jsonfilelog.go index 60b6088630..9faa4e02db 100644 --- a/components/engine/daemon/logger/jsonfilelog/jsonfilelog.go +++ b/components/engine/daemon/logger/jsonfilelog/jsonfilelog.go @@ -25,7 +25,6 @@ type JSONFileLogger struct { buf *bytes.Buffer writer *loggerutils.RotateFileWriter mu sync.Mutex - ctx logger.Context readers map[*logger.LogWatcher]struct{} // stores the active log followers extra []byte // json-encoded extra attributes }