mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +08:00
Remove two bits of dead code
Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
@ -118,16 +118,3 @@ func searchToGeneric(params []image.SearchResult) (genericParams []interface{})
|
|||||||
}
|
}
|
||||||
return genericParams
|
return genericParams
|
||||||
}
|
}
|
||||||
|
|
||||||
func genSearchOutputMap() map[string]string {
|
|
||||||
io := image.SearchResult{}
|
|
||||||
v := reflect.Indirect(reflect.ValueOf(io))
|
|
||||||
values := make(map[string]string)
|
|
||||||
|
|
||||||
for i := 0; i < v.NumField(); i++ {
|
|
||||||
key := v.Type().Field(i).Name
|
|
||||||
value := key
|
|
||||||
values[key] = strings.ToUpper(splitCamelCase(value))
|
|
||||||
}
|
|
||||||
return values
|
|
||||||
}
|
|
||||||
|
@ -726,11 +726,6 @@ func ParseCreateOpts(ctx context.Context, c *GenericCLIResults, runtime *libpod.
|
|||||||
return config, nil
|
return config, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
type namespace interface {
|
|
||||||
IsContainer() bool
|
|
||||||
Container() string
|
|
||||||
}
|
|
||||||
|
|
||||||
func CreateContainerFromCreateConfig(r *libpod.Runtime, createConfig *cc.CreateConfig, ctx context.Context, pod *libpod.Pod) (*libpod.Container, error) {
|
func CreateContainerFromCreateConfig(r *libpod.Runtime, createConfig *cc.CreateConfig, ctx context.Context, pod *libpod.Pod) (*libpod.Container, error) {
|
||||||
runtimeSpec, err := cc.CreateConfigToOCISpec(createConfig)
|
runtimeSpec, err := cc.CreateConfigToOCISpec(createConfig)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user