vc: drop container SetPid API

It is not used by anyone.

Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
Peng Tao 2019-07-18 21:04:29 -07:00
parent ff5f1b4273
commit f886c0bf35
4 changed files with 0 additions and 18 deletions

View File

@ -368,16 +368,6 @@ func (c *Container) GetPid() int {
return c.process.Pid
}
// SetPid sets and stores the given pid as the pid of container's process.
func (c *Container) SetPid(pid int) error {
c.process.Pid = pid
if !c.sandbox.supportNewStore() {
return c.storeProcess()
}
return nil
}
func (c *Container) setStateFstype(fstype string) error {
c.state.Fstype = fstype

View File

@ -773,7 +773,6 @@ type VCContainer interface {
ID() string
Sandbox() VCSandbox
Process() Process
SetPid(pid int) error
}
```

View File

@ -110,5 +110,4 @@ type VCContainer interface {
ID() string
Sandbox() VCSandbox
Process() Process
SetPid(pid int) error
}

View File

@ -38,12 +38,6 @@ func (c *Container) GetPid() int {
return c.MockPid
}
// SetPid implements the VCContainer function of the same name.
func (c *Container) SetPid(pid int) error {
c.MockPid = pid
return nil
}
// GetAnnotations implements the VCContainer function of the same name.
func (c *Container) GetAnnotations() map[string]string {
return c.MockAnnotations