Remove a bunch of unused cruft

This commit is contained in:
James Mills
2022-10-05 11:11:40 +10:00
parent 06c8ce3410
commit a07f747eb1
25 changed files with 31 additions and 1542 deletions

View File

@@ -357,14 +357,6 @@ func PrettyURL(uri string) string {
return fmt.Sprintf("%s/%s", u.Hostname(), strings.TrimPrefix(u.EscapedPath(), "/"))
}
// IsAdminUserFactory returns a function that returns true if the user provided
// is the configured pod administrator, false otherwise.
func IsAdminUserFactory(conf *Config) func(user *User) bool {
return func(user *User) bool {
return NormalizeUsername(conf.AdminUser) == NormalizeUsername(user.Username)
}
}
func URLForPage(baseURL, page string) string {
return fmt.Sprintf(
"%s/%s",