diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-06-22 00:24:06 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-06-22 00:24:06 +0000 |
commit | ba68a2715c7c764dbf3a013875254d9445d32c26 (patch) | |
tree | a5f7a9c44d1b93c238c1e86c18265e5e9f6531e7 /pkg/shim/proc/proc.go | |
parent | f3b34051a987b79da9aa727995a9e1fee7e699b3 (diff) | |
parent | 1e472a85729b723c0d737d5e1c68c875a158d6a6 (diff) |
Merge release-20210614.0-8-g1e472a857 (automated)
Diffstat (limited to 'pkg/shim/proc/proc.go')
-rw-r--r-- | pkg/shim/proc/proc.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/pkg/shim/proc/proc.go b/pkg/shim/proc/proc.go index edba3fca5..89ad3f505 100644 --- a/pkg/shim/proc/proc.go +++ b/pkg/shim/proc/proc.go @@ -17,23 +17,5 @@ // the sandbox process running the container. package proc -import ( - "fmt" -) - // RunscRoot is the path to the root runsc state directory. const RunscRoot = "/run/containerd/runsc" - -func stateName(v interface{}) string { - switch v.(type) { - case *runningState, *execRunningState: - return "running" - case *createdState, *execCreatedState: - return "created" - case *deletedState: - return "deleted" - case *stoppedState: - return "stopped" - } - panic(fmt.Errorf("invalid state %v", v)) -} |