Remove unused code

This commit is contained in:
Yann Flory
2016-03-15 10:51:19 +01:00
parent 5da8560e22
commit 6e50ae94dd
2 changed files with 5 additions and 30 deletions

View File

@@ -258,11 +258,11 @@ return /******/ (function(modules) { // webpackBootstrap
}
}, {
key: 'sendTo',
value: function sendTo(fromId, toId, msg) {
value: function sendTo(id, msg) {
var channel = this;
return new Promise(function (resolve, reject) {
var protocol = _ServiceProvider2.default.get(channel.settings.protocol);
channel.topologyService.sendTo(toId, channel, protocol.message(cs.USER_DATA, { id: fromId, data: msg })).then(resolve, reject);
channel.topologyService.sendTo(id, channel, protocol.message(cs.USER_DATA, { id: channel.myID, data: msg })).then(resolve, reject);
});
}
}, {