Skip to content

Commit

Permalink
chore: rm redundant generated comments (#154)
Browse files Browse the repository at this point in the history
Signed-off-by: Sasha Melentyev <sasha@m8.ru>
  • Loading branch information
sashamelentyev authored Dec 11, 2024
1 parent 54f1625 commit 39afd56
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 36 deletions.
16 changes: 0 additions & 16 deletions peg.peg.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 0 additions & 20 deletions tree/peg.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,16 +414,6 @@ func (p *{{.StructName}}) Init(options ...func(*{{.StructName}}) error) error {
}
{{end}}
{{if .HasCharacter}}
/*matchChar := func(c byte) bool {
if buffer[position] == c {
position++
return true
}
return false
}*/
{{end}}
{{if .HasString}}
matchString := func(s string) bool {
i := position
Expand All @@ -438,16 +428,6 @@ func (p *{{.StructName}}) Init(options ...func(*{{.StructName}}) error) error {
}
{{end}}
{{if .HasRange}}
/*matchRange := func(lower byte, upper byte) bool {
if c := buffer[position]; c >= lower && c <= upper {
position++
return true
}
return false
}*/
{{end}}
_rules = [...]func() bool {
nil,`

Expand Down

0 comments on commit 39afd56

Please sign in to comment.