engine: remove duplicate function
@@ -92,32 +92,6 @@ func setup(cfg *config.Config, t *testing.T) (TaskEngine, func(), credentials.Ma
}, credentialsManager
}
-/*
-func discardEvents(from interface{}) func() {
- done := make(chan bool)
-
- go func() {
- for {
- ndx, _, _ := reflect.Select([]reflect.SelectCase{
- {
- Dir: reflect.SelectRecv,
- Chan: reflect.ValueOf(from),
- },
- {
- Dir: reflect.SelectRecv,
- Chan: reflect.ValueOf(done),
- },
- })
- if ndx == 1 {
- break
- }
- }
- }()
- return func() {
- done <- true
- }
-}
-*/
// TestDockerStateToContainerState tests convert the container status from
// docker inspect to the status defined in agent
func TestDockerStateToContainerState(t *testing.T) {
