From c57ae035028473726b5114cc5aacdaeb5e48456e Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Sat, 23 Sep 2023 20:21:42 +0200 Subject: [PATCH] Remove unused attribute --- config.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/config.go b/config.go index 5b30c7f..334c3c2 100644 --- a/config.go +++ b/config.go @@ -97,7 +97,6 @@ type configBlog struct { Map *configGeoMap `mapstructure:"map"` Contact *configContact `mapstructure:"contact"` Announcement *configAnnouncement `mapstructure:"announcement"` - name string // Configs read from database hideOldContentWarning bool hideShareButton bool @@ -453,10 +452,6 @@ func (a *goBlog) initConfig(logging bool) error { if a.cfg.Blogs[a.cfg.DefaultBlog] == nil { return errors.New("default blog does not exist") } - // Set name attribute for every blog - for name, blog := range a.cfg.Blogs { - blog.name = name - } // Check media storage config if ms := a.cfg.Micropub.MediaStorage; ms != nil && ms.MediaURL != "" { ms.MediaURL = strings.TrimSuffix(ms.MediaURL, "/")