瀏覽代碼

Merge pull request #15393 from azurezk/exportImage-toplevel

change exportImage to top-level func
Jessie Frazelle 10 年之前
父節點
當前提交
82e2dec06d
共有 2 個文件被更改,包括 0 次插入2 次删除
  1. 0 1
      graph/export.go
  2. 0 1
      pkg/parsers/parsers.go

+ 0 - 1
graph/export.go

@@ -105,7 +105,6 @@ func (s *TagStore) ImageExport(names []string, outStream io.Writer) error {
 	return nil
 	return nil
 }
 }
 
 
-// FIXME: this should be a top-level function, not a class method
 func (s *TagStore) exportImage(name, tempdir string) error {
 func (s *TagStore) exportImage(name, tempdir string) error {
 	for n := name; n != ""; {
 	for n := name; n != ""; {
 		// temporary directory
 		// temporary directory

+ 0 - 1
pkg/parsers/parsers.go

@@ -14,7 +14,6 @@ import (
 
 
 // ParseHost parses the specified address and returns an address that will be used as the host.
 // ParseHost parses the specified address and returns an address that will be used as the host.
 // Depending of the address specified, will use the defaultTCPAddr or defaultUnixAddr
 // Depending of the address specified, will use the defaultTCPAddr or defaultUnixAddr
-// FIXME: Change this not to receive default value as parameter
 func ParseHost(defaultTCPAddr, defaultUnixAddr, addr string) (string, error) {
 func ParseHost(defaultTCPAddr, defaultUnixAddr, addr string) (string, error) {
 	addr = strings.TrimSpace(addr)
 	addr = strings.TrimSpace(addr)
 	if addr == "" {
 	if addr == "" {