Remove unused types Shortcode and ShortcodeFunc
authorbep <bjorn.erik.pedersen@gmail.com>
Fri, 17 Apr 2015 22:32:07 +0000 (00:32 +0200)
committerbep <bjorn.erik.pedersen@gmail.com>
Fri, 17 Apr 2015 22:31:56 +0000 (00:31 +0200)
hugolib/menu_test.go
hugolib/shortcode.go
hugolib/site.go

index b829dd2ea491f876d1d649c665fe1575ecf110fb..d4d425d50ed45857dda35d876ff1565a8c0879bf 100644 (file)
@@ -487,7 +487,6 @@ func testSiteSetup(s *Site, t *testing.T) {
 
        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)
index c4eec974dde877c433e178a2456013f22d8c00f6..0d396a7806ea11efc92ef32a541d3fbdf0a0e354 100644 (file)
@@ -28,13 +28,6 @@ import (
        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
index 4f3fd1a81fb2bcd40e6bbe9d915e1923cd15e84f..46c60a19457e0c2e6982208fcf6b626b2944aa76 100644 (file)
@@ -75,7 +75,6 @@ type Site struct {
        Source         source.Input
        Sections       Taxonomy
        Info           SiteInfo
-       Shortcodes     map[string]ShortcodeFunc
        Menus          Menus
        timer          *nitro.B
        Targets        targetList
@@ -450,7 +449,6 @@ func (s *Site) initialize() (err error) {
 
        s.initializeSiteInfo()
 
-       s.Shortcodes = make(map[string]ShortcodeFunc)
        return
 }