mirror of
https://github.com/robertkrimen/otto
synced 2025-10-26 20:28:49 +08:00
fix: remove commented-out code (#323)
Remove old commented out code that was found using: https://go-critic.github.io/overview.html#commentedOutCode-ref
This commit is contained in:
committed by
GitHub
parent
d34fc6f56d
commit
edceeed7a9
@@ -455,7 +455,6 @@ func (self *_parser) parseWithStatement() ast.Statement {
|
||||
self.expect(token.RIGHT_PARENTHESIS)
|
||||
|
||||
if self.mode&StoreComments != 0 {
|
||||
//comments = append(comments, self.comments.FetchAll()...)
|
||||
self.comments.CommentMap.AddComments(node, comments, ast.LEADING)
|
||||
self.comments.CommentMap.AddComments(node, withComments, ast.WITH)
|
||||
}
|
||||
@@ -774,7 +773,6 @@ func (self *_parser) parseIfStatement() ast.Statement {
|
||||
|
||||
func (self *_parser) parseSourceElement() ast.Statement {
|
||||
statement := self.parseStatement()
|
||||
//self.comments.Unset()
|
||||
return statement
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user