Browse code

daemon: remove some unused code

Signed-off-by: Alexander Morozov <lk4d4@docker.com>

Alexander Morozov authored on 2016/04/01 03:24:12
Showing 3 changed files
... ...
@@ -10,20 +10,6 @@ const (
10 10
 	loggerCloseTimeout = 10 * time.Second
11 11
 )
12 12
 
13
-// supervisor defines the interface that a supervisor must implement
14
-type supervisor interface {
15
-	// LogContainerEvent generates events related to a given container
16
-	LogContainerEvent(*Container, string)
17
-	// Cleanup ensures that the container is properly unmounted
18
-	Cleanup(*Container)
19
-	// StartLogging starts the logging driver for the container
20
-	StartLogging(*Container) error
21
-	// Run starts a container
22
-	Run(c *Container) error
23
-	// IsShuttingDown tells whether the supervisor is shutting down or not
24
-	IsShuttingDown() bool
25
-}
26
-
27 13
 // Reset puts a container into a state where it can be restarted again.
28 14
 func (container *Container) Reset(lock bool) {
29 15
 	if lock {
... ...
@@ -68,9 +68,3 @@ func (m *mockmetadataclient) Region() (string, error) {
68 68
 	output := <-m.regionResult
69 69
 	return output.successResult, output.errorResult
70 70
 }
71
-
72
-func test() {
73
-	_ = &logStream{
74
-		client: newMockClient(),
75
-	}
76
-}
... ...
@@ -7,7 +7,3 @@ import "github.com/docker/docker/cli"
7 7
 const daemonUsage = ""
8 8
 
9 9
 var daemonCli cli.Handler
10
-
11
-// notifySystem sends a message to the host when the server is ready to be used
12
-func notifySystem() {
13
-}