aboutsummaryrefslogtreecommitdiffstats
path: root/modules/markup/markdown/markdown.go
diff options
context:
space:
mode:
authorGusted <postmaster@gusted.xyz>2022-12-27 02:15:35 +0100
committerGitHub <noreply@github.com>2022-12-27 09:15:35 +0800
commitb48cf03717e99ff33d1e845c97e6f8c469cd2e6d (patch)
tree35227df20ccfc6738d4cae6ab8f31afba30351b2 /modules/markup/markdown/markdown.go
parent83640c449eb6a1b31bc09b1372cc156d114804f8 (diff)
downloadgitea-b48cf03717e99ff33d1e845c97e6f8c469cd2e6d.tar.gz
gitea-b48cf03717e99ff33d1e845c97e6f8c469cd2e6d.zip
Remove deadcode (#22245)
- Remove code that isn't being used. Found this is my stash from a few weeks ago, not sure how I found this in the first place. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'modules/markup/markdown/markdown.go')
-rw-r--r--modules/markup/markdown/markdown.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/modules/markup/markdown/markdown.go b/modules/markup/markdown/markdown.go
index 1e5c470758..f1ffea8872 100644
--- a/modules/markup/markdown/markdown.go
+++ b/modules/markup/markdown/markdown.go
@@ -289,9 +289,3 @@ func RenderRawString(ctx *markup.RenderContext, content string) (string, error)
}
return buf.String(), nil
}
-
-// IsMarkdownFile reports whether name looks like a Markdown file
-// based on its extension.
-func IsMarkdownFile(name string) bool {
- return markup.IsMarkupFile(name, MarkupName)
-}