Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Remove WithSubrepaer which isn't used
Browse files Browse the repository at this point in the history
This option was unused and was trying to set a field that doesn't exist
anymore.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
  • Loading branch information
cpuguy83 committed Feb 21, 2018
1 parent 106a470 commit 63da974
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions components/engine/libcontainerd/remote_daemon_options_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,3 @@ func (o oomScore) Apply(r Remote) error {
}
return fmt.Errorf("WithOOMScore option not supported for this remote")
}

// WithSubreaper sets whether containerd should register itself as a
// subreaper
func WithSubreaper(reap bool) RemoteOption {
return subreaper(reap)
}

type subreaper bool

func (s subreaper) Apply(r Remote) error {
if remote, ok := r.(*remote); ok {
remote.NoSubreaper = !bool(s)
return nil
}
return fmt.Errorf("WithSubreaper option not supported for this remote")
}

0 comments on commit 63da974

Please sign in to comment.