filters: cleanup & fmt

Docker-DCO-1.1-Signed-off-by: Vincent Batts <vbatts@redhat.com> (github: vbatts)
Upstream-commit: babd5720157898bb33d806bda920d9f9f2df73f0
Component: engine
This commit is contained in:
Vincent Batts
2014-06-02 16:33:51 -04:00
parent bf13fd92ad
commit 9030fc74aa
2 changed files with 3 additions and 19 deletions
-16
View File
@@ -1168,24 +1168,8 @@ func (cli *DockerCli) CmdImages(args ...string) error {
return err
}
}
/*
var (
untagged bool
)
for k,v := range imageFilters {
}
*/
// seeing -all untagged images is redundant, and no point in seeing a visualization of that
/*
if *flUntagged && (*all || *flViz || *flTree) {
fmt.Fprintln(cli.err, "Notice: --untagged is not to be used with --all, --tree or --viz")
*flUntagged = false
}
*/
matchName := cmd.Arg(0)
// FIXME: --viz and --tree are deprecated. Remove them in a future version.
if *flViz || *flTree {
v := url.Values{
+3 -3
View File
@@ -22,9 +22,9 @@ func ParseFlag(arg string, prev map[string]string) (map[string]string, error) {
} else {
filters = map[string]string{}
}
if len(arg) == 0 {
return filters, nil
}
if len(arg) == 0 {
return filters, nil
}
for _, chunk := range strings.Split(arg, ";") {
if !strings.Contains(chunk, "=") {