mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 08:47:56 +00:00
vc: drop container SetPid API
It is not used by anyone. Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
parent
ff5f1b4273
commit
f886c0bf35
@ -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
|
||||
|
||||
|
@ -773,7 +773,6 @@ type VCContainer interface {
|
||||
ID() string
|
||||
Sandbox() VCSandbox
|
||||
Process() Process
|
||||
SetPid(pid int) error
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -110,5 +110,4 @@ type VCContainer interface {
|
||||
ID() string
|
||||
Sandbox() VCSandbox
|
||||
Process() Process
|
||||
SetPid(pid int) error
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user