mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +08:00
Merge pull request #2863 from cevich/fix_new_lint
Remove two bits of dead code
This commit is contained in:
@ -118,16 +118,3 @@ func searchToGeneric(params []image.SearchResult) (genericParams []interface{})
|
||||
}
|
||||
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
|
||||
}
|
||||
|
||||
type namespace interface {
|
||||
IsContainer() bool
|
||||
Container() string
|
||||
}
|
||||
|
||||
func CreateContainerFromCreateConfig(r *libpod.Runtime, createConfig *cc.CreateConfig, ctx context.Context, pod *libpod.Pod) (*libpod.Container, error) {
|
||||
runtimeSpec, err := cc.CreateConfigToOCISpec(createConfig)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user