Util cleanup

This commit is contained in:
Ian Gulliver
2019-07-07 21:47:16 +00:00
parent 7a2ac17344
commit 39a3d20e73
3 changed files with 19 additions and 23 deletions

View File

@@ -117,12 +117,7 @@ class LayoutLink {
}
for (let hop of this.path) {
let links = this.linksByPos_.get(hop);
if (!links) {
links = [];
this.linksByPos_.set(hop, links);
}
links.push(this);
getOrSet(this.linksByPos_, hop, []).push(this);
}
console.log(iter);