From 20dfaab703d44745c58a04d67b6f2893246e0969 Mon Sep 17 00:00:00 2001 From: Tobias Weingartner Date: Sat, 30 Apr 2016 14:16:19 -0700 Subject: [PATCH] Nuke unused function. --- middleware/markdown/markdown.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/middleware/markdown/markdown.go b/middleware/markdown/markdown.go index 00e0f72d..11078e7b 100644 --- a/middleware/markdown/markdown.go +++ b/middleware/markdown/markdown.go @@ -33,16 +33,6 @@ type Markdown struct { IndexFiles []string } -// IsIndexFile checks to see if a file is an index file -func (md Markdown) IsIndexFile(file string) bool { - for _, f := range md.IndexFiles { - if f == file { - return true - } - } - return false -} - // Config stores markdown middleware configurations. type Config struct { // Markdown renderer