This removes a shim `daemon.Server` interface which was used to start
separating Daemon from Server *gradually*, without getting cyclic
dependency errors.
Now that the last Daemon->Server dependency has been removed, we can
finally remove the shim. Yay!
Signed-off-by: Solomon Hykes <solomon@docker.com>
| ... | ... |
@@ -514,9 +514,7 @@ func (container *Container) monitor(callback execdriver.StartCallback) error {
|
| 514 | 514 |
if container.Config.OpenStdin {
|
| 515 | 515 |
container.stdin, container.stdinPipe = io.Pipe() |
| 516 | 516 |
} |
| 517 |
- if container.daemon != nil && container.daemon.srv != nil {
|
|
| 518 |
- container.LogEvent("die")
|
|
| 519 |
- } |
|
| 517 |
+ container.LogEvent("die")
|
|
| 520 | 518 |
// If the engine is shutting down, don't save the container state as stopped. |
| 521 | 519 |
// This will cause it to be restarted when the engine is restarted. |
| 522 | 520 |
if container.daemon != nil && container.daemon.eng != nil && !container.daemon.eng.IsShutdown() {
|
| ... | ... |
@@ -94,7 +94,6 @@ type Daemon struct {
|
| 94 | 94 |
idIndex *truncindex.TruncIndex |
| 95 | 95 |
sysInfo *sysinfo.SysInfo |
| 96 | 96 |
volumes *graph.Graph |
| 97 |
- srv Server |
|
| 98 | 97 |
eng *engine.Engine |
| 99 | 98 |
config *daemonconfig.Config |
| 100 | 99 |
containerGraph *graphdb.Database |
| ... | ... |
@@ -1032,10 +1031,6 @@ func (daemon *Daemon) ContainerGraph() *graphdb.Database {
|
| 1032 | 1032 |
return daemon.containerGraph |
| 1033 | 1033 |
} |
| 1034 | 1034 |
|
| 1035 |
-func (daemon *Daemon) SetServer(server Server) {
|
|
| 1036 |
- daemon.srv = server |
|
| 1037 |
-} |
|
| 1038 |
- |
|
| 1039 | 1035 |
func (daemon *Daemon) checkLocaldns() error {
|
| 1040 | 1036 |
resolvConf, err := resolvconf.Get() |
| 1041 | 1037 |
if err != nil {
|