summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/models/repo.go b/models/repo.go
index b37120236f..3283223d5b 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -687,13 +687,6 @@ func (repo *Repository) getUsersWithAccessMode(e Engine, mode AccessMode) (_ []*
return users, nil
}
-// NextIssueIndex returns the next issue index
-// FIXME: should have a mutex to prevent producing same index for two issues that are created
-// closely enough.
-func (repo *Repository) NextIssueIndex() int64 {
- return int64(repo.NumIssues+repo.NumPulls) + 1
-}
-
var (
descPattern = regexp.MustCompile(`https?://\S+`)
)