summaryrefslogtreecommitdiff
path: root/libpod/runtime.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2018-07-11 09:38:31 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2018-07-11 09:38:43 +0200
commit0066374fc3f69bbfd9ed08986115049d9a39b1f8 (patch)
treefb6280a0adad757fffbb6acf26e25f1b31f5c0dd /libpod/runtime.go
parent340becf542b240f82ffda0fe998da334a3ffbd0b (diff)
downloadpodman-0066374fc3f69bbfd9ed08986115049d9a39b1f8.tar.gz
podman-0066374fc3f69bbfd9ed08986115049d9a39b1f8.tar.bz2
podman-0066374fc3f69bbfd9ed08986115049d9a39b1f8.zip
runtime: delete unused function
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'libpod/runtime.go')
-rw-r--r--libpod/runtime.go13
1 files changed, 0 insertions, 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