From b9ebe0de16829cafeb3fc006ac0a66954ce44053 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Tue, 25 Jun 2019 17:12:12 +0000 Subject: [PATCH] Remove link manifest on nodes --- architype.js | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/architype.js b/architype.js index e8ad627..b30ec16 100644 --- a/architype.js +++ b/architype.js @@ -134,7 +134,7 @@ class Architype { let tos = graph.targetsByLabel.get(link.getTo().getLabel()) || []; for (let from of froms) { for (let to of tos) { - from.addLink(to, link); + // TODO } } } @@ -148,10 +148,6 @@ class Architype { } } } - graph.nodes.sort( - (a, b) => { - return b.getLinks().length - a.getLinks().length; - }); } } @@ -454,8 +450,6 @@ class EditorEntryBase extends ListenUtils { constructor() { super(); - this.links_ = []; - this.elem_ = document.createElement('li'); this.elem_.tabIndex = 0; this.listen(this.elem_, 'focus', () => this.onElemFocus()); @@ -482,18 +476,6 @@ class EditorEntryBase extends ListenUtils { } clear() { - this.links_.length = 0; - } - - addLink(target, link) { - this.links_.push({ - target: target, - link: link, - }); - } - - getLinks() { - return this.links_; } onElemFocus() {