Skip to content

Commit

Permalink
Remove a few more now-redundant toString()s
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed May 20, 2017
1 parent b1b7f23 commit 3eb19e7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
4 changes: 0 additions & 4 deletions lib/jsdom/living/nodes/Document-impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,6 @@ class DocumentImpl extends NodeImpl {
return Boolean(this._lastFocusedElement);
}

toString() {
return "[object HTMLDocument]";
}

_createElementWithCorrectElementInterface(name, namespace) {
// https://dom.spec.whatwg.org/#concept-element-interface
// TODO: eventually we should re-write the element-builder system to be namespace aware, but for now it is not.
Expand Down
7 changes: 0 additions & 7 deletions lib/jsdom/living/nodes/Node-impl.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"use strict";

const EventTargetImpl = require("../events/EventTarget-impl").implementation;
const idlUtils = require("../generated/utils");

const domSymbolTree = require("../helpers/internal-constants").domSymbolTree;
const simultaneousIterators = require("../../utils").simultaneousIterators;
const DOMException = require("../../web-idl/DOMException");
Expand Down Expand Up @@ -441,11 +439,6 @@ class NodeImpl extends EventTargetImpl {
this.appendChild(this._ownerDocument.createTextNode(txt));
}
}

toString() {
const wrapper = idlUtils.wrapperForImpl(this);
return `[object ${wrapper.constructor.name}]`;
}
}

module.exports = {
Expand Down
4 changes: 0 additions & 4 deletions lib/jsdom/living/traversal/TreeWalker-impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,6 @@ class TreeWalkerImpl {
}
}

toString() {
return "[object TreeWalker]";
}

_filterNode(node) {
const n = node.nodeType - 1;

Expand Down

0 comments on commit 3eb19e7

Please sign in to comment.