From 6c79ee7d1e38f7b2f408105db9af7fcf9942f7ca Mon Sep 17 00:00:00 2001 From: xuzhaokui Date: Sun, 9 Nov 2014 22:12:54 +0800 Subject: [PATCH] Remove the redundant stripComment. Signed-off-by: xuzhaokui --- builder/parser/parser.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/builder/parser/parser.go b/builder/parser/parser.go index 6b0ab7ab8c..9e34b5920e 100644 --- a/builder/parser/parser.go +++ b/builder/parser/parser.go @@ -103,10 +103,6 @@ func Parse(rwc io.Reader) (*Node, error) { for scanner.Scan() { scannedLine := strings.TrimLeftFunc(scanner.Text(), unicode.IsSpace) - if stripComments(scannedLine) == "" { - continue - } - line, child, err := parseLine(scannedLine) if err != nil { return nil, err