Remove unused functions and parameters

This commit is contained in:
Lorenz Hübschle-Schneider 2014-02-24 22:16:49 +00:00
parent 330942b111
commit e301849a73
2 changed files with 1 additions and 25 deletions

View file

@ -226,13 +226,11 @@ weechat.factory('handlers', ['$rootScope', 'models', 'plugins', function($rootSc
weechat.factory('connection', weechat.factory('connection',
['$rootScope', ['$rootScope',
'$log', '$log',
'$store',
'handlers', 'handlers',
'models', 'models',
'ngWebsockets', 'ngWebsockets',
function($rootScope, function($rootScope,
$log, $log,
storage,
handlers, handlers,
models, models,
ngWebsockets) { ngWebsockets) {
@ -241,27 +239,6 @@ function($rootScope,
// Takes care of the connection and websocket hooks // Takes care of the connection and websocket hooks
var _formatForWs = function(message) {
/*
* Formats a weechat message to be sent over
* the websocket.
*/
message.replace(/[\r\n]+$/g, "").split("\n");
return message;
};
var _send = function(message) {
return ngWebsockets.send(_formatForWs(message));
};
var _sendAll = function(messages) {
for (var i in messages) {
messages[i] = _formatForWs(messages[i]);
}
return ngWebsockets.sendAll(messages);
};
var connect = function (host, port, passwd, ssl, noCompression) { var connect = function (host, port, passwd, ssl, noCompression) {
var proto = ssl ? 'wss' : 'ws'; var proto = ssl ? 'wss' : 'ws';
var url = proto + "://" + host + ":" + port + "/weechat"; var url = proto + "://" + host + ":" + port + "/weechat";
@ -363,7 +340,7 @@ function($rootScope,
}; };
var onmessage = function(event) { var onmessage = function() {
// If we recieve a message from WeeChat it means that // If we recieve a message from WeeChat it means that
// password was OK. Store that result and check for it // password was OK. Store that result and check for it
// in the failure handler. // in the failure handler.

View file

@ -53,7 +53,6 @@ var IrcUtils = {
* @return Next nick (may be the same) * @return Next nick (may be the same)
*/ */
_nextNick: function(iterCandidate, currentNick, nickList) { _nextNick: function(iterCandidate, currentNick, nickList) {
var firstInGroup = null;
var matchingNicks = []; var matchingNicks = [];
var at = null; var at = null;
var lcIterCandidate = iterCandidate.toLowerCase(); var lcIterCandidate = iterCandidate.toLowerCase();