Skip to content

Commit 330c4da

Browse files
committed
removed: dead code
1 parent 53ae242 commit 330c4da

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/parse.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export default function parse(html, options) {
99
options.components || (options.components = empty)
1010
const result = []
1111
const arr = []
12-
const byTag = {}
1312
let current
1413
let level = -1
1514
let inComponent = false
@@ -48,8 +47,6 @@ export default function parse(html, options) {
4847
})
4948
}
5049

51-
byTag[current.tagName] = current
52-
5350
// if we're at root, push new base node
5451
if (level === 0) {
5552
result.push(current)

test/parse.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
import test from 'tape'
33
import HTML from '../src/index'
44

5-
console.log(HTML)
6-
75
test('parse', function (t) {
86
let html = '<div class="oh"><p></p></div>'
97
let parsed = HTML.parse(html)

0 commit comments

Comments
 (0)