# HG changeset patch # User Marcin Lulek # Date 2016-09-09 14:21:58 # Node ID 233ee50e8fe3e04289af9f7e78fe9fa4426b4c0a # Parent 6acda5b83c0671d54c5c454b0cd8a5b05cbcf0fe connection: remove unused code diff --git a/rhodecode/public/js/src/rhodecode/connection_controller.js b/rhodecode/public/js/src/rhodecode/connection_controller.js --- 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 () {