diff options
| author | Michael Williamson <mike@zwobble.org> | 2018-05-12 18:37:56 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2018-05-12 18:37:56 +0100 |
| commit | 3d1e91e36b259dc8a648c43134f91d334b8d2da4 (patch) | |
| tree | cf3b6acdde44bd1e2b2d517382881df051847454 /lib/writers | |
| parent | d3f02ae97fadff8209a3bda6644b8334c3b01279 (diff) | |
Remove unused code
Diffstat (limited to 'lib/writers')
| -rw-r--r-- | lib/writers/html-writer.js | 14 | ||||
| -rw-r--r-- | lib/writers/markdown-writer.js | 7 |
2 files changed, 5 insertions, 16 deletions
diff --git a/lib/writers/html-writer.js b/lib/writers/html-writer.js index e16feec..16c848f 100644 --- a/lib/writers/html-writer.js +++ b/lib/writers/html-writer.js @@ -62,11 +62,6 @@ function prettyWriter() { writer.selfClosing(tagName, attributes); } - function append(html) { - startText(); - writer.append(html.replace("\n", "\n" + indentation)); - } - function insideIndentedElement() { return stack.length === 0 || indentedElements[stack[stack.length - 1]]; } @@ -81,9 +76,9 @@ function prettyWriter() { function indent() { inText = false; if (!start && insideIndentedElement() && !isInPre()) { - writer.append("\n"); + writer._append("\n"); for (var i = 0; i < indentationLevel; i++) { - writer.append(indentation); + writer._append(indentation); } } } @@ -99,8 +94,7 @@ function prettyWriter() { open: open, close: close, text: text, - selfClosing: selfClosing, - append: append + selfClosing: selfClosing }; } @@ -146,7 +140,7 @@ function simpleWriter() { close: close, text: text, selfClosing: selfClosing, - append: append + _append: append }; } diff --git a/lib/writers/markdown-writer.js b/lib/writers/markdown-writer.js index 4284532..a89ad9f 100644 --- a/lib/writers/markdown-writer.js +++ b/lib/writers/markdown-writer.js @@ -141,10 +141,6 @@ function markdownWriter() { fragments.push(escapeMarkdown(value)); } - function append(html) { - fragments.push(html); - } - function asString() { return fragments.join(""); } @@ -154,8 +150,7 @@ function markdownWriter() { open: open, close: close, text: text, - selfClosing: selfClosing, - append: append + selfClosing: selfClosing }; } |
