Skip to content

Commit e7b9d50

Browse files
committed
remove dead code
1 parent 7b33f32 commit e7b9d50

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

routers/web/repo/setting/setting.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,6 @@ func handleSettingsPostUpdate(ctx *context.Context) {
207207
repo.Website = form.Website
208208
repo.IsTemplate = form.Template
209209

210-
// Visibility of forked repository is forced sync with base repository.
211-
if repo.IsFork {
212-
form.Private = repo.BaseRepo.IsPrivate || repo.BaseRepo.Owner.Visibility == structs.VisibleTypePrivate
213-
}
214-
215210
if err := repo_service.UpdateRepository(ctx, repo, false); err != nil {
216211
ctx.ServerError("UpdateRepository", err)
217212
return

services/forms/repo_form.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ type RepoSettingForm struct {
104104
PushMirrorPassword string
105105
PushMirrorSyncOnCommit bool
106106
PushMirrorInterval string
107-
Private bool
108107
Template bool
109108
EnablePrune bool
110109

@@ -148,8 +147,6 @@ type RepoSettingForm struct {
148147
AllowOnlyContributorsToTrackTime bool
149148
EnableIssueDependencies bool
150149

151-
IsArchived bool
152-
153150
// Signing Settings
154151
TrustModel string
155152

0 commit comments

Comments
 (0)