浏览代码

Remove the redundant stripComment.

Signed-off-by: xuzhaokui <cynicholas@gmail.com>
xuzhaokui 10 年之前
父节点
当前提交
6c79ee7d1e
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      builder/parser/parser.go

+ 0 - 4
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