From 71fe9a191ecf3fc27343e04eae4c923d13161d4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vytautas=20=C5=A0altenis?= Date: Fri, 1 Apr 2016 10:48:25 +0300 Subject: [PATCH] Remove dead code --- html.go | 4 ---- latex.go | 4 ---- markdown.go | 1 - 3 files changed, 9 deletions(-) diff --git a/html.go b/html.go index 9433072..f2bc204 100644 --- a/html.go +++ b/html.go @@ -238,10 +238,6 @@ func (r *HTML) entityEscapeWithSkip(src []byte, skipRanges [][]int) { r.attrEscape(src[end:]) } -func (r *HTML) GetFlags() HtmlFlags { - return r.flags -} - func (r *HTML) TitleBlock(text []byte) { text = bytes.TrimPrefix(text, []byte("% ")) text = bytes.Replace(text, []byte("\n% "), []byte("\n"), -1) diff --git a/latex.go b/latex.go index a68028e..03fb790 100644 --- a/latex.go +++ b/latex.go @@ -40,10 +40,6 @@ func (r *Latex) Write(b []byte) (int, error) { return r.w.Write(b) } -func (r *Latex) GetFlags() HtmlFlags { - return 0 -} - // render code chunks using verbatim, or listings if we have a language func (r *Latex) BlockCode(text []byte, lang string) { if lang == "" { diff --git a/markdown.go b/markdown.go index d46bb2a..899a98f 100644 --- a/markdown.go +++ b/markdown.go @@ -210,7 +210,6 @@ type Renderer interface { DocumentHeader() DocumentFooter() - GetFlags() HtmlFlags Write(b []byte) (int, error) Render(ast *Node) []byte