mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #12160 from mrunalp/remove_unused
Removes unused function.
This commit is contained in:
commit
d08db9a059
1 changed files with 0 additions and 10 deletions
|
@ -3,10 +3,8 @@
|
||||||
package native
|
package native
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
@ -303,14 +301,6 @@ func (d *driver) GetPidsForContainer(id string) ([]int, error) {
|
||||||
return active.Processes()
|
return active.Processes()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *driver) writeContainerFile(container *configs.Config, id string) error {
|
|
||||||
data, err := json.Marshal(container)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return ioutil.WriteFile(filepath.Join(d.root, id, "container.json"), data, 0655)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (d *driver) cleanContainer(id string) error {
|
func (d *driver) cleanContainer(id string) error {
|
||||||
d.Lock()
|
d.Lock()
|
||||||
delete(d.activeContainers, id)
|
delete(d.activeContainers, id)
|
||||||
|
|
Loading…
Reference in a new issue