Skip to content

Commit

Permalink
syntax: remove some dead code
Browse files Browse the repository at this point in the history
Found with the coverage tool.
  • Loading branch information
mvdan committed Dec 8, 2018
1 parent 84893ee commit fdb7c61
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions syntax/lexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -912,9 +912,6 @@ func (p *Parser) advanceLitHdoc(r rune) {
}
}
lStart := len(p.litBs) - 1
if lStart < 0 {
return
}
for ; ; r = p.rune() {
switch r {
case '`', '$':
Expand Down Expand Up @@ -963,9 +960,6 @@ func (p *Parser) quotedHdocWord() *Word {
}
}
lStart := len(p.litBs) - 1
if lStart < 0 {
return nil
}
for r != utf8.RuneSelf && r != '\n' {
r = p.rune()
}
Expand Down

0 comments on commit fdb7c61

Please sign in to comment.