Преглед изворни кода

Removes unused function.

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
Mrunal Patel пре 10 година
родитељ
комит
195bebd3a7
1 измењених фајлова са 0 додато и 10 уклоњено
  1. 0 10
      daemon/execdriver/native/driver.go

+ 0 - 10
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)