Skip to content

Commit

Permalink
WorkerDocumentTypeNode not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Oct 1, 2021
1 parent 2c5050a commit 2fb06d5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
4 changes: 1 addition & 3 deletions src/lib/web-worker/worker-constructors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { WorkerAnchorElement } from './worker-anchor';
import { WorkerElement } from './worker-element';
import { WorkerContentWindow, WorkerIFrameElement } from './worker-iframe';
import { WorkerDocumentElementChild, WorkerDocument } from './worker-document';
import { WorkerDocumentTypeNode, WorkerNode } from './worker-node';
import { WorkerInstance } from './worker-instance';
import { WorkerNode } from './worker-node';
import { WorkerScriptElement } from './worker-script';

export const constructInstance = (
Expand Down Expand Up @@ -37,8 +37,6 @@ const getConstructor = (interfaceType: InterfaceType, nodeName?: string): typeof
return WorkerDocument;
} else if (interfaceType === InterfaceType.Window) {
return WorkerContentWindow;
} else if (interfaceType === InterfaceType.DocumentTypeNode) {
return WorkerDocumentTypeNode;
} else if (interfaceType <= InterfaceType.DocumentFragmentNode) {
return WorkerNode;
} else {
Expand Down
12 changes: 0 additions & 12 deletions src/lib/web-worker/worker-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,3 @@ export class WorkerNodeList {
return this._[Symbol.iterator]();
}
}

export class WorkerDocumentTypeNode extends WorkerNode {
get name() {
return NodeName.DocumentTypeNode;
}
get publicId() {
return '';
}
get systemId() {
return '';
}
}

1 comment on commit 2fb06d5

@vercel
Copy link

@vercel vercel bot commented on 2fb06d5 Oct 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.