runtime: delete sandboxlist.go and sandboxlist_test.go

Delete sandboxlist.go and sandboxlist_test.go under virtcontainers package.

Fixes: #1078

Signed-off-by: bin liu <bin@hyper.sh>
This commit is contained in:
bin liu
2020-11-04 14:29:24 +08:00
parent 61fccef643
commit 290203943c
10 changed files with 15 additions and 295 deletions

View File

@@ -153,10 +153,7 @@ func CleanupContainer(ctx context.Context, sandboxID, containerID string, force
}
defer unlock()
s, err := fetchSandbox(ctx, sandboxID)
if err != nil {
return err
}
s := globalSandbox
defer s.Release()