Browse code

Removes unused function.

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>

Mrunal Patel authored on 2015/04/08 07:15:28
Showing 1 changed files
... ...
@@ -3,10 +3,8 @@
3 3
 package native
4 4
 
5 5
 import (
6
-	"encoding/json"
7 6
 	"fmt"
8 7
 	"io"
9
-	"io/ioutil"
10 8
 	"os"
11 9
 	"os/exec"
12 10
 	"path/filepath"
... ...
@@ -303,14 +301,6 @@ func (d *driver) GetPidsForContainer(id string) ([]int, error) {
303 303
 	return active.Processes()
304 304
 }
305 305
 
306
-func (d *driver) writeContainerFile(container *configs.Config, id string) error {
307
-	data, err := json.Marshal(container)
308
-	if err != nil {
309
-		return err
310
-	}
311
-	return ioutil.WriteFile(filepath.Join(d.root, id, "container.json"), data, 0655)
312
-}
313
-
314 306
 func (d *driver) cleanContainer(id string) error {
315 307
 	d.Lock()
316 308
 	delete(d.activeContainers, id)