cruft removal

This commit is contained in:
Jason McVetta 2013-09-09 17:17:09 -07:00
parent ebb934c1b0
commit 4f3b8033f2
1 changed files with 0 additions and 8 deletions

View File

@ -485,14 +485,6 @@ func (b *buildFile) Build(context io.Reader) (string, error) {
dockerfile = lineContinuation.ReplaceAllString(dockerfile, " ")
stepN := 0
for _, line := range strings.Split(dockerfile, "\n") {
/* line, err := dockerfile.ReadString('\n')
if err != nil {
if err == io.EOF && line == "" {
break
} else if err != io.EOF {
return "", err
}
}*/
line = strings.Trim(strings.Replace(line, "\t", " ", -1), " \t\r\n")
// Skip comments and empty line
if len(line) == 0 || line[0] == '#' {