Skip to content

Commit fd9ad05

Browse files
committed
remove since it is there for 3years
1 parent a70e822 commit fd9ad05

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

routers/routes/routes.go

-18
Original file line numberDiff line numberDiff line change
@@ -385,24 +385,6 @@ func RegisterRoutes(m *macaron.Macaron) {
385385
m.Post("/keys/delete", userSetting.DeleteKey)
386386
m.Get("/organization", userSetting.Organization)
387387
m.Get("/repos", userSetting.Repos)
388-
389-
// redirects from old settings urls to new ones
390-
// TODO: can be removed on next major version
391-
m.Get("/avatar", func(ctx *context.Context) {
392-
ctx.Redirect(setting.AppSubURL+"/user/settings", http.StatusMovedPermanently)
393-
})
394-
m.Get("/email", func(ctx *context.Context) {
395-
ctx.Redirect(setting.AppSubURL+"/user/settings/account", http.StatusMovedPermanently)
396-
})
397-
m.Get("/delete", func(ctx *context.Context) {
398-
ctx.Redirect(setting.AppSubURL+"/user/settings/account", http.StatusMovedPermanently)
399-
})
400-
m.Get("/openid", func(ctx *context.Context) {
401-
ctx.Redirect(setting.AppSubURL+"/user/settings/security", http.StatusMovedPermanently)
402-
})
403-
m.Get("/account_link", func(ctx *context.Context) {
404-
ctx.Redirect(setting.AppSubURL+"/user/settings/security", http.StatusMovedPermanently)
405-
})
406388
}, reqSignIn, func(ctx *context.Context) {
407389
ctx.Data["PageIsUserSettings"] = true
408390
ctx.Data["AllThemes"] = setting.UI.Themes

0 commit comments

Comments
 (0)