소스 검색

Merge pull request #21696 from LK4D4/cleanup_unused_daemon

daemon: remove some unused code
David Calavera 9 년 전
부모
커밋
6b4f7e6b7f
3개의 변경된 파일0개의 추가작업 그리고 24개의 파일을 삭제
  1. 0 14
      container/monitor.go
  2. 0 6
      daemon/logger/awslogs/cwlogsiface_mock_test.go
  3. 0 4
      docker/daemon_none.go

+ 0 - 14
container/monitor.go

@@ -10,20 +10,6 @@ const (
 	loggerCloseTimeout = 10 * time.Second
 )
 
-// supervisor defines the interface that a supervisor must implement
-type supervisor interface {
-	// LogContainerEvent generates events related to a given container
-	LogContainerEvent(*Container, string)
-	// Cleanup ensures that the container is properly unmounted
-	Cleanup(*Container)
-	// StartLogging starts the logging driver for the container
-	StartLogging(*Container) error
-	// Run starts a container
-	Run(c *Container) error
-	// IsShuttingDown tells whether the supervisor is shutting down or not
-	IsShuttingDown() bool
-}
-
 // Reset puts a container into a state where it can be restarted again.
 func (container *Container) Reset(lock bool) {
 	if lock {

+ 0 - 6
daemon/logger/awslogs/cwlogsiface_mock_test.go

@@ -68,9 +68,3 @@ func (m *mockmetadataclient) Region() (string, error) {
 	output := <-m.regionResult
 	return output.successResult, output.errorResult
 }
-
-func test() {
-	_ = &logStream{
-		client: newMockClient(),
-	}
-}

+ 0 - 4
docker/daemon_none.go

@@ -7,7 +7,3 @@ import "github.com/docker/docker/cli"
 const daemonUsage = ""
 
 var daemonCli cli.Handler
-
-// notifySystem sends a message to the host when the server is ready to be used
-func notifySystem() {
-}