mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
runtime: delete unused function
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -1,7 +1,6 @@
|
|||||||
package libpod
|
package libpod
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
@ -693,18 +692,6 @@ func (r *Runtime) generateName() (string, error) {
|
|||||||
// The code should never reach here.
|
// 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
|
// ImageRuntime returns the imageruntime for image resolution
|
||||||
func (r *Runtime) ImageRuntime() *image.Runtime {
|
func (r *Runtime) ImageRuntime() *image.Runtime {
|
||||||
return r.imageRuntime
|
return r.imageRuntime
|
||||||
|
Reference in New Issue
Block a user