git ssb

0+

wanderer🌟 / js-primea-hypervisor



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.jschanged
portManager.jschanged
kernel.jsView
@@ -175,17 +175,9 @@
175175 message._hops++
176176 message._fromTicks = this.ticks
177177 this.ports.removeSentPorts(message)
178178
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)
188180 // if (this.currentMessage !== message && !message.responsePort) {
189181 // this.currentMessage._addSubMessage(message)
190182 // }
191183 }
portManager.jsView
@@ -85,13 +85,12 @@
8585 this.hypervisor.addNodeToCheck(this.id)
8686
8787 // update the destination port
8888 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+
9493 return port
9594 }
9695
9796 /**
@@ -99,11 +98,9 @@
9998 * @param {string} name
10099 */
101100 async delete (name) {
102101 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())
106103 this._delete(name)
107104 }
108105
109106 _delete (name) {

Built with git-ssb-web