diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-05-02 16:29:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-02 16:29:27 +0200 |
commit | 6c69fe104477dba113e0e4b6efaca344c5f802bc (patch) | |
tree | adcb119573116741e5b95dfd80b30f722d00a6fc | |
parent | 7d05ff3fc772a7be4860ed4a3cd59a62f8bb893a (diff) | |
parent | 7f157dbe46ec5f69a4860748e5ea5dd2e5b601ad (diff) | |
download | podman-6c69fe104477dba113e0e4b6efaca344c5f802bc.tar.gz podman-6c69fe104477dba113e0e4b6efaca344c5f802bc.tar.bz2 podman-6c69fe104477dba113e0e4b6efaca344c5f802bc.zip |
Merge pull request #2863 from cevich/fix_new_lint
Remove two bits of dead code
-rw-r--r-- | cmd/podman/search.go | 13 | ||||
-rw-r--r-- | cmd/podman/shared/create.go | 5 |
2 files changed, 0 insertions, 18 deletions
diff --git a/cmd/podman/search.go b/cmd/podman/search.go index 13948aef0..b236f3055 100644 --- a/cmd/podman/search.go +++ b/cmd/podman/search.go @@ -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 -} diff --git a/cmd/podman/shared/create.go b/cmd/podman/shared/create.go index 48476e177..eac2d044d 100644 --- a/cmd/podman/shared/create.go +++ b/cmd/podman/shared/create.go @@ -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 { |