connection: remove unused code
This commit is contained in:
parent
ad745fd910
commit
7a7102fedd
1 changed files with 0 additions and 17 deletions
|
|
@ -26,13 +26,6 @@ var registerViewChannels;
|
|||
channelsInfo: {},
|
||||
urls: urls
|
||||
};
|
||||
this.channelNameParsers = [];
|
||||
|
||||
this.addChannelNameParser = function (fn) {
|
||||
if (this.channelNameParsers.indexOf(fn) === -1) {
|
||||
this.channelNameParsers.push(fn);
|
||||
}
|
||||
};
|
||||
|
||||
this.listen = function () {
|
||||
if (window.WebSocket) {
|
||||
|
|
@ -178,16 +171,6 @@ var registerViewChannels;
|
|||
{channel: key, state: this.state.channelsInfo[key]});
|
||||
}
|
||||
}
|
||||
/**
|
||||
* checks current channel list in state and if channel is not present
|
||||
* converts them into executable "commands" and pushes them on topics
|
||||
*/
|
||||
for (var i = 0; i < this.state.channels.length; i++) {
|
||||
var channel = this.state.channels[i];
|
||||
for (var j = 0; j < this.channelNameParsers.length; j++) {
|
||||
this.channelNameParsers[j](channel);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
this.run = function () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue