Get rid of unneeded method in Renderer

This commit is contained in:
Vytautas Šaltenis 2016-04-11 11:12:41 +03:00
parent 24e146a727
commit 98ddf98997
3 changed files with 0 additions and 10 deletions

View File

@ -125,10 +125,6 @@ func (w *HTMLWriter) Newline() {
w.WriteByte('\n') w.WriteByte('\n')
} }
func (r *HTML) Write(b []byte) (int, error) {
return r.w.Write(b)
}
// NewHTMLRenderer creates and configures an HTML object, which // NewHTMLRenderer creates and configures an HTML object, which
// satisfies the Renderer interface. // satisfies the Renderer interface.
func NewHTMLRenderer(params HTMLRendererParameters) Renderer { func NewHTMLRenderer(params HTMLRendererParameters) Renderer {

View File

@ -36,10 +36,6 @@ func NewLatexRenderer(flags int) Renderer {
} }
} }
func (r *Latex) Write(b []byte) (int, error) {
return r.w.Write(b)
}
// render code chunks using verbatim, or listings if we have a language // render code chunks using verbatim, or listings if we have a language
func (r *Latex) BlockCode(text []byte, lang string) { func (r *Latex) BlockCode(text []byte, lang string) {
if lang == "" { if lang == "" {

View File

@ -212,8 +212,6 @@ type Renderer interface {
DocumentHeader() DocumentHeader()
DocumentFooter() DocumentFooter()
Write(b []byte) (int, error)
Render(ast *Node) []byte Render(ast *Node) []byte
} }