Remove duplicate class 'NodeSet' (#24337)

This commit is contained in:
Andy
2018-05-22 15:33:03 -07:00
committed by GitHub
parent ba63f49513
commit 56f33ad3bb

View File

@@ -347,16 +347,4 @@ namespace ts.codefix {
}
}
}
class NodeSet {
private map = createMap<Node>();
add(node: Node): void {
this.map.set(String(getNodeId(node)), node);
}
some(pred: (node: Node) => boolean): boolean {
return forEachEntry(this.map, pred) || false;
}
}
}