1
0
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:
Iskander (Alex) Sharipov
2021-09-27 18:31:07 +03:00
committed by GitHub
parent d34fc6f56d
commit edceeed7a9
2 changed files with 0 additions and 4 deletions

View File

@@ -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
}