浏览代码

filters: cleanup & fmt

Docker-DCO-1.1-Signed-off-by: Vincent Batts <vbatts@redhat.com> (github: vbatts)
Vincent Batts 11 年之前
父节点
当前提交
babd572015
共有 2 个文件被更改,包括 3 次插入19 次删除
  1. 0 16
      api/client/commands.go
  2. 3 3
      utils/filters/parse.go

+ 0 - 16
api/client/commands.go

@@ -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
utils/filters/parse.go

@@ -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, "=") {