Skip to content

Commit ad74e45

Browse files
mvdanianlancetaylor
authored andcommitted
regexp/syntax: remove unused flags parameter
Found by github.com/mvdan/unparam. Change-Id: I186d2afd067e97eb05d65c4599119b347f82867d Reviewed-on: https://go-review.googlesource.com/37840 Reviewed-by: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent d8485ee commit ad74e45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/regexp/syntax/parse.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ func (p *parser) collapse(subs []*Regexp, op Op) *Regexp {
381381
}
382382
}
383383
if op == OpAlternate {
384-
re.Sub = p.factor(re.Sub, re.Flags)
384+
re.Sub = p.factor(re.Sub)
385385
if len(re.Sub) == 1 {
386386
old := re
387387
re = re.Sub[0]
@@ -402,7 +402,7 @@ func (p *parser) collapse(subs []*Regexp, op Op) *Regexp {
402402
// which simplifies by character class introduction to
403403
// A(B[CD]|EF)|BC[XY]
404404
//
405-
func (p *parser) factor(sub []*Regexp, flags Flags) []*Regexp {
405+
func (p *parser) factor(sub []*Regexp) []*Regexp {
406406
if len(sub) < 2 {
407407
return sub
408408
}

0 commit comments

Comments
 (0)