From 195bebd3a7b6ffab1cfbb15ad9835ad83bca9737 Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Tue, 7 Apr 2015 18:15:28 -0400 Subject: [PATCH] Removes unused function. Signed-off-by: Mrunal Patel --- daemon/execdriver/native/driver.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/daemon/execdriver/native/driver.go b/daemon/execdriver/native/driver.go index 40eb87cbe4..e5811bb852 100644 --- a/daemon/execdriver/native/driver.go +++ b/daemon/execdriver/native/driver.go @@ -3,10 +3,8 @@ package native import ( - "encoding/json" "fmt" "io" - "io/ioutil" "os" "os/exec" "path/filepath" @@ -303,14 +301,6 @@ func (d *driver) GetPidsForContainer(id string) ([]int, error) { 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 { d.Lock() delete(d.activeContainers, id)