From 7a7102fedde96cfb33bbd51b0bd49618fa353b3f Mon Sep 17 00:00:00 2001 From: Marcin Lulek Date: Fri, 9 Sep 2016 16:21:58 +0200 Subject: [PATCH] connection: remove unused code --- .../js/src/rhodecode/connection_controller.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/rhodecode/public/js/src/rhodecode/connection_controller.js b/rhodecode/public/js/src/rhodecode/connection_controller.js index f212f980..d5a5afbb 100644 --- a/rhodecode/public/js/src/rhodecode/connection_controller.js +++ b/rhodecode/public/js/src/rhodecode/connection_controller.js @@ -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 () {