Browse code

change exportImage to top-level func

Signed-off-by: Kun Zhang <zkazure@gmail.com>

remove useless FIXME

Signed-off-by: Kun Zhang <zkazure@gmail.com>

fix

Signed-off-by: Kun Zhang <zkazure@gmail.com>

Kun Zhang authored on 2015/08/07 14:12:55
Showing 2 changed files
... ...
@@ -105,7 +105,6 @@ func (s *TagStore) ImageExport(names []string, outStream io.Writer) error {
105 105
 	return nil
106 106
 }
107 107
 
108
-// FIXME: this should be a top-level function, not a class method
109 108
 func (s *TagStore) exportImage(name, tempdir string) error {
110 109
 	for n := name; n != ""; {
111 110
 		// temporary directory
... ...
@@ -14,7 +14,6 @@ import (
14 14
 
15 15
 // ParseHost parses the specified address and returns an address that will be used as the host.
16 16
 // Depending of the address specified, will use the defaultTCPAddr or defaultUnixAddr
17
-// FIXME: Change this not to receive default value as parameter
18 17
 func ParseHost(defaultTCPAddr, defaultUnixAddr, addr string) (string, error) {
19 18
 	addr = strings.TrimSpace(addr)
20 19
 	if addr == "" {