runtime: delete unused function

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano
2018-07-11 09:38:31 +02:00
parent 340becf542
commit 0066374fc3

View File

@ -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