diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-01-25 17:08:18 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-01-25 17:14:03 +0100 |
commit | ae5a45be6f0ee4d5c52b38fd28b22b55d9cd7b2d (patch) | |
tree | b2f59970a4dc0841f0013de70b8ad3b1de69fac2 /hugolib/menu.go | |
parent | 4d912e2aad39bfe8d76672cf53b01317792e02c5 (diff) |
hugolib: Remove unused code
Diffstat (limited to 'hugolib/menu.go')
-rw-r--r-- | hugolib/menu.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/hugolib/menu.go b/hugolib/menu.go index ad421cd88..81c136405 100644 --- a/hugolib/menu.go +++ b/hugolib/menu.go @@ -46,13 +46,6 @@ type Menus map[string]*Menu // PageMenus is a dictionary of menus defined in the Pages. type PageMenus map[string]*MenuEntry -// addChild adds a new child to this menu entry. -// The default sort order will then be applied. -func (m *MenuEntry) addChild(child *MenuEntry) { - m.Children = append(m.Children, child) - m.Children.Sort() -} - // HasChildren returns whether this menu item has any children. func (m *MenuEntry) HasChildren() bool { return m.Children != nil |