Prechádzať zdrojové kódy

libcontainerd/supervisor: remove unused remote.rootDir

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 3 rokov pred
rodič
commit
7b0bd43a27
1 zmenil súbory, kde vykonal 0 pridanie a 2 odobranie
  1. 0 2
      libcontainerd/supervisor/remote_daemon.go

+ 0 - 2
libcontainerd/supervisor/remote_daemon.go

@@ -39,7 +39,6 @@ type remote struct {
 	daemonStartCh chan error
 	daemonStopCh  chan struct{}
 
-	rootDir  string
 	stateDir string
 }
 
@@ -55,7 +54,6 @@ type DaemonOpt func(c *remote) error
 // Start starts a containerd daemon and monitors it
 func Start(ctx context.Context, rootDir, stateDir string, opts ...DaemonOpt) (Daemon, error) {
 	r := &remote{
-		rootDir:  rootDir,
 		stateDir: stateDir,
 		Config: config.Config{
 			Version: 2,