mirror of
https://github.com/gohugoio/hugo.git
synced 2025-02-17 04:21:35 +00:00
Remove unused types Shortcode and ShortcodeFunc
This commit is contained in:
parent
be0d977009
commit
bed053071e
3 changed files with 0 additions and 10 deletions
|
@ -487,7 +487,6 @@ func testSiteSetup(s *Site, t *testing.T) {
|
||||||
|
|
||||||
s.Menus = Menus{}
|
s.Menus = Menus{}
|
||||||
s.initializeSiteInfo()
|
s.initializeSiteInfo()
|
||||||
s.Shortcodes = make(map[string]ShortcodeFunc)
|
|
||||||
|
|
||||||
if err := s.CreatePages(); err != nil {
|
if err := s.CreatePages(); err != nil {
|
||||||
t.Fatalf("Unable to create pages: %s", err)
|
t.Fatalf("Unable to create pages: %s", err)
|
||||||
|
|
|
@ -28,13 +28,6 @@ import (
|
||||||
jww "github.com/spf13/jwalterweatherman"
|
jww "github.com/spf13/jwalterweatherman"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ShortcodeFunc func([]string) string
|
|
||||||
|
|
||||||
type Shortcode struct {
|
|
||||||
Name string
|
|
||||||
Func ShortcodeFunc
|
|
||||||
}
|
|
||||||
|
|
||||||
type ShortcodeWithPage struct {
|
type ShortcodeWithPage struct {
|
||||||
Params interface{}
|
Params interface{}
|
||||||
Inner template.HTML
|
Inner template.HTML
|
||||||
|
|
|
@ -75,7 +75,6 @@ type Site struct {
|
||||||
Source source.Input
|
Source source.Input
|
||||||
Sections Taxonomy
|
Sections Taxonomy
|
||||||
Info SiteInfo
|
Info SiteInfo
|
||||||
Shortcodes map[string]ShortcodeFunc
|
|
||||||
Menus Menus
|
Menus Menus
|
||||||
timer *nitro.B
|
timer *nitro.B
|
||||||
Targets targetList
|
Targets targetList
|
||||||
|
@ -450,7 +449,6 @@ func (s *Site) initialize() (err error) {
|
||||||
|
|
||||||
s.initializeSiteInfo()
|
s.initializeSiteInfo()
|
||||||
|
|
||||||
s.Shortcodes = make(map[string]ShortcodeFunc)
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue