aboutsummaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-05-08 17:36:54 +0800
committerGitHub <noreply@github.com>2023-05-08 17:36:54 +0800
commitcb700aedd1e670fb47b8cf0cd67fb117a1ad88a2 (patch)
tree90cdc8e732b1c498bf5113accad8dc4245a059ac /models/repo.go
parentff5629268c5c01d3f460570baa571baef3f896cd (diff)
downloadgitea-cb700aedd1e670fb47b8cf0cd67fb117a1ad88a2.tar.gz
gitea-cb700aedd1e670fb47b8cf0cd67fb117a1ad88a2.zip
Split "modules/context.go" to separate files (#24569)
The "modules/context.go" is too large to maintain. This PR splits it to separate files, eg: context_request.go, context_response.go, context_serve.go This PR will help: 1. The future refactoring for Gitea's web context (eg: simplify the context) 2. Introduce proper "range request" support 3. Introduce context function This PR only moves code, doesn't change any logic.
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/models/repo.go b/models/repo.go
index d2a3311c8b..5903132862 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -35,9 +35,6 @@ import (
"xorm.io/builder"
)
-// ItemsPerPage maximum items per page in forks, watchers and stars of a repo
-var ItemsPerPage = 40
-
// Init initialize model
func Init(ctx context.Context) error {
if err := unit.LoadUnitConfig(); err != nil {