ref: bed053071e3b521b0a915af07fc20a282c50dd9b
parent: be0d9770095a6497a69a610783a5710982591084
author: bep <[email protected]>
date: Fri Apr 17 20:32:07 EDT 2015
Remove unused types Shortcode and ShortcodeFunc
--- a/hugolib/menu_test.go
+++ b/hugolib/menu_test.go
@@ -487,7 +487,6 @@
s.Menus = Menus{}
s.initializeSiteInfo()
- s.Shortcodes = make(map[string]ShortcodeFunc)
if err := s.CreatePages(); err != nil {
t.Fatalf("Unable to create pages: %s", err)
--- a/hugolib/shortcode.go
+++ b/hugolib/shortcode.go
@@ -28,13 +28,6 @@
jww "github.com/spf13/jwalterweatherman"
)
-type ShortcodeFunc func([]string) string
-
-type Shortcode struct {
- Name string
- Func ShortcodeFunc
-}
-
type ShortcodeWithPage struct {
Params interface{}
Inner template.HTML
--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -75,7 +75,6 @@
Source source.Input
Sections Taxonomy
Info SiteInfo
- Shortcodes map[string]ShortcodeFunc
Menus Menus
timer *nitro.B
Targets targetList
@@ -450,7 +449,6 @@
s.initializeSiteInfo()
- s.Shortcodes = make(map[string]ShortcodeFunc)
return
}