From 0066374fc3f69bbfd9ed08986115049d9a39b1f8 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Wed, 11 Jul 2018 09:38:31 +0200 Subject: runtime: delete unused function Signed-off-by: Giuseppe Scrivano --- libpod/runtime.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/libpod/runtime.go b/libpod/runtime.go index d0cc1eaa5..a2ebc4de4 100644 --- a/libpod/runtime.go +++ b/libpod/runtime.go @@ -1,7 +1,6 @@ package libpod import ( - "bytes" "fmt" "io/ioutil" "os" @@ -693,18 +692,6 @@ func (r *Runtime) generateName() (string, error) { // The code should never reach here. } -// SaveDefaultConfig saves a copy of the default config at the given path -func SaveDefaultConfig(path string) error { - var w bytes.Buffer - e := toml.NewEncoder(&w) - - if err := e.Encode(&defaultRuntimeConfig); err != nil { - return err - } - - return ioutil.WriteFile(path, w.Bytes(), 0644) -} - // ImageRuntime returns the imageruntime for image resolution func (r *Runtime) ImageRuntime() *image.Runtime { return r.imageRuntime -- cgit v1.2.3-54-g00ecf