mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-02-14 10:08:30 -05:00
chore: Remove DeleteLocaleCookie
- Introduced in9b261f52f0
and removed in5b9557aef5
.
This commit is contained in:
parent
4d8f1e3e4b
commit
2d81bdbeb6
2 changed files with 0 additions and 9 deletions
|
@ -233,9 +233,6 @@ code.gitea.io/gitea/modules/web
|
|||
RouteMock
|
||||
RouteMockReset
|
||||
|
||||
code.gitea.io/gitea/modules/web/middleware
|
||||
DeleteLocaleCookie
|
||||
|
||||
code.gitea.io/gitea/modules/zstd
|
||||
NewWriter
|
||||
Writer.Write
|
||||
|
|
|
@ -53,9 +53,3 @@ func Locale(resp http.ResponseWriter, req *http.Request) translation.Locale {
|
|||
func SetLocaleCookie(resp http.ResponseWriter, lang string, maxAge int) {
|
||||
SetSiteCookie(resp, "lang", lang, maxAge)
|
||||
}
|
||||
|
||||
// DeleteLocaleCookie convenience function to delete the locale cookie consistently
|
||||
// Setting the lang cookie will trigger the middleware to reset the language to previous state.
|
||||
func DeleteLocaleCookie(resp http.ResponseWriter) {
|
||||
SetSiteCookie(resp, "lang", "", -1)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue