From 68aca194ab2821c268b33e7ee091b6e0ab219c58 Mon Sep 17 00:00:00 2001 From: Fatih Arslan Date: Tue, 3 Nov 2015 02:46:13 +0300 Subject: [PATCH] ast: we don't need zero node Also trigger a build on Travis --- ast/ast.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/ast/ast.go b/ast/ast.go index 04ef380..c5a6f47 100644 --- a/ast/ast.go +++ b/ast/ast.go @@ -10,12 +10,6 @@ type Node interface { Pos() token.Pos } -// NewNode returns a non usable Node interface implementer. The position is -// initalizied to zero. -func NewNode() Node { - return &zero{} -} - func (File) node() {} func (ObjectList) node() {} func (ObjectKey) node() {} @@ -27,14 +21,6 @@ func (ObjectType) node() {} func (LiteralType) node() {} func (ListType) node() {} -type zero struct{} - -func (zero) node() {} - -func (z *zero) Pos() token.Pos { - return token.Pos{} -} - // File represents a single HCL file type File struct { Node Node // usually a *ObjectList