Skip to content

Commit

Permalink
refactor: remove dead code dating from sax
Browse files Browse the repository at this point in the history
  • Loading branch information
lddubeau committed Jul 4, 2018
1 parent e5b549a commit 3852e64
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/saxes.js
Original file line number Diff line number Diff line change
Expand Up @@ -1043,12 +1043,6 @@ ${XML_NAMESPACE}.`);
this.tagName = this.tag.name;
this.emitNode("onclosetag", this.tagName);

const x = {};
// eslint-disable-next-line guard-for-in
for (const i in tag.ns) {
x[i] = tag.ns[i];
}

const parent = this.tags[this.tags.length - 1] || this;
if (this.opt.xmlns && tag.ns !== parent.ns) {
// remove namespace bindings introduced by tag
Expand Down

0 comments on commit 3852e64

Please sign in to comment.