Browse Source

删除多余的代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.12.2^2
zouap 3 years ago
parent
commit
439094a43b
1 changed files with 0 additions and 19 deletions
  1. +0
    -19
      models/issue_list.go

+ 0
- 19
models/issue_list.go View File

@@ -511,25 +511,6 @@ func (issues IssueList) LoadComments() error {
return issues.loadComments(x, builder.NewCond())
}

// LoadClosedComments loads discuss comments
func (issues IssueList) LoadClosedComments() error {
err := issues.loadComments(x, builder.Eq{"comment.type": CommentTypeClose})
if err == nil {
for _, issue := range issues {
if issue.Comments != nil {
tmp := make([]*Comment, 0)
tmp = append(tmp, issue.Comments[len(issue.Comments)-1])
issue.Comments = tmp
for i, comm := range issue.Comments {
fmt.Printf("comm load poster.i=" + fmt.Sprint(i))
comm.LoadPoster()
}
}
}
}
return err
}

// LoadDiscussComments loads discuss comments
func (issues IssueList) LoadDiscussComments() error {
return issues.loadComments(x, builder.Eq{"comment.type": CommentTypeComment})


Loading…
Cancel
Save