Skip to content

Commit 6e26309

Browse files
committed
Remove LocalUncycloPath
1 parent d378539 commit 6e26309

File tree

5 files changed

+1
-20
lines changed

5 files changed

+1
-20
lines changed

contrib/pr/checkout.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ func runPR() {
107107
models.LoadFixtures()
108108
os.RemoveAll(setting.RepoRootPath)
109109
os.RemoveAll(models.LocalCopyPath())
110-
os.RemoveAll(models.LocalUncycloPath())
111110
com.CopyDir(path.Join(curDir, "integrations/gitea-repositories-meta"), setting.RepoRootPath)
112111

113112
log.Printf("[PR] Setting up router\n")

integrations/integration_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ func prepareTestEnv(t testing.TB, skip ...int) {
177177
assert.NoError(t, models.LoadFixtures())
178178
assert.NoError(t, os.RemoveAll(setting.RepoRootPath))
179179
assert.NoError(t, os.RemoveAll(models.LocalCopyPath()))
180-
assert.NoError(t, os.RemoveAll(models.LocalUncycloPath()))
181180

182181
assert.NoError(t, com.CopyDir(path.Join(filepath.Dir(setting.AppPath), "integrations/gitea-repositories-meta"),
183182
setting.RepoRootPath))

models/helper_directory.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313

1414
"code.gitea.io/gitea/modules/log"
1515
"code.gitea.io/gitea/modules/setting"
16+
1617
"github.com/Unknwon/com"
1718
)
1819

models/wiki.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@ import (
88
"fmt"
99
"net/url"
1010
"os"
11-
"path"
1211
"path/filepath"
1312
"strings"
1413

1514
"code.gitea.io/gitea/modules/git"
1615
"code.gitea.io/gitea/modules/log"
17-
"code.gitea.io/gitea/modules/setting"
1816
"code.gitea.io/gitea/modules/sync"
1917

2018
"github.com/Unknwon/com"
@@ -89,19 +87,6 @@ func (repo *Repository) InitUncyclo() error {
8987
return nil
9088
}
9189

92-
// LocalUncycloPath returns the local wiki repository copy path.
93-
func LocalUncycloPath() string {
94-
if filepath.IsAbs(setting.Repository.Local.LocalUncycloPath) {
95-
return setting.Repository.Local.LocalUncycloPath
96-
}
97-
return path.Join(setting.AppDataPath, setting.Repository.Local.LocalUncycloPath)
98-
}
99-
100-
// LocalUncycloPath returns the path to the local wiki repository (?).
101-
func (repo *Repository) LocalUncycloPath() string {
102-
return path.Join(LocalUncycloPath(), com.ToStr(repo.ID))
103-
}
104-
10590
// nameAllowed checks if a wiki name is allowed
10691
func nameAllowed(name string) error {
10792
for _, reservedName := range reservedUncycloNames {

modules/setting/repository.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ var (
5353
// Repository local settings
5454
Local struct {
5555
LocalCopyPath string
56-
LocalUncycloPath string
5756
} `ini:"-"`
5857

5958
// Pull request settings
@@ -105,10 +104,8 @@ var (
105104
// Repository local settings
106105
Local: struct {
107106
LocalCopyPath string
108-
LocalUncycloPath string
109107
}{
110108
LocalCopyPath: "tmp/local-repo",
111-
LocalUncycloPath: "tmp/local-wiki",
112109
},
113110

114111
// Pull request settings

0 commit comments

Comments
 (0)