From 3f8ca0c9236cecad4c9010e2ff3ea526e3c07bde Mon Sep 17 00:00:00 2001 From: David Norton Date: Mon, 16 Mar 2015 19:45:39 -0400 Subject: [PATCH] influxql: remove RegexLiteral from Source types --- influxql/ast.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/influxql/ast.go b/influxql/ast.go index b79e3c5361..c6c0f76ff9 100644 --- a/influxql/ast.go +++ b/influxql/ast.go @@ -203,8 +203,7 @@ type Source interface { source() } -func (*Measurement) source() {} -func (*RegexLiteral) source() {} +func (*Measurement) source() {} // Sources represents a list of sources. type Sources []Source @@ -658,9 +657,6 @@ func cloneSource(s Source) Source { m.Regex = &RegexLiteral{Val: regexp.MustCompile(s.Regex.Val.String())} } return m - case *RegexLiteral: - re, _ := regexp.Compile(s.Val.String()) - return &RegexLiteral{Val: re} default: panic("unreachable") }