Commit 1650f6c1fa38e2cf5a33c336b937420f3d0347e5
removed dead code
Signed-off-by: wanderer <mjbecze@gmail.com>wanderer committed on 8/22/2017, 8:17:46 PM
Parent: f4180d83c1c1401e1e4afc64aa897387ef4e8fdf
Files changed
kernel.js | changed |
portManager.js | changed |
kernel.js | ||
---|---|---|
@@ -175,17 +175,9 @@ | ||
175 | 175 | message._hops++ |
176 | 176 | message._fromTicks = this.ticks |
177 | 177 | this.ports.removeSentPorts(message) |
178 | 178 | |
179 | - const copyPort = this.hypervisor.copyNativePort(port, message) | |
180 | - if (copyPort) { | |
181 | - this.queue(port.destName, new Message({ports: [copyPort]})) | |
182 | - } else if (port.destId === this.hypervisor.CREATION_ID) { | |
183 | - return this.createInstance(message) | |
184 | - } else { | |
185 | - return this.hypervisor.send(port, message) | |
186 | - } | |
187 | - | |
179 | + return this.hypervisor.send(port, message) | |
188 | 180 | // if (this.currentMessage !== message && !message.responsePort) { |
189 | 181 | // this.currentMessage._addSubMessage(message) |
190 | 182 | // } |
191 | 183 | } |
portManager.js | ||
---|---|---|
@@ -85,13 +85,12 @@ | ||
85 | 85 | this.hypervisor.addNodeToCheck(this.id) |
86 | 86 | |
87 | 87 | // update the destination port |
88 | 88 | const destPort = await this.hypervisor.getDestPort(port) |
89 | - if (destPort) { | |
90 | - delete destPort.destName | |
91 | - delete destPort.destId | |
92 | - destPort.destPort = port | |
93 | - } | |
89 | + delete destPort.destName | |
90 | + delete destPort.destId | |
91 | + destPort.destPort = port | |
92 | + | |
94 | 93 | return port |
95 | 94 | } |
96 | 95 | |
97 | 96 | /** |
@@ -99,11 +98,9 @@ | ||
99 | 98 | * @param {string} name |
100 | 99 | */ |
101 | 100 | async delete (name) { |
102 | 101 | const port = this.ports[name] |
103 | - if (port.destID !== this.hypervisor.CREATION_ID) { | |
104 | - await this.kernel.send(port, new DeleteMessage()) | |
105 | - } | |
102 | + await this.kernel.send(port, new DeleteMessage()) | |
106 | 103 | this._delete(name) |
107 | 104 | } |
108 | 105 | |
109 | 106 | _delete (name) { |
Built with git-ssb-web