From b4298a1b0c8cf2827d8b1f1a8ee39fc644c41cf4 Mon Sep 17 00:00:00 2001 From: David Cormier Date: Tue, 8 Oct 2013 19:12:56 -0400 Subject: [PATCH] Remove unused code --- js/websockets.js | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/js/websockets.js b/js/websockets.js index 89111a0..1ee4dd2 100644 --- a/js/websockets.js +++ b/js/websockets.js @@ -237,7 +237,6 @@ weechat.factory('connection', ['$rootScope', '$log', 'handlers', 'colors', 'mode message = protocol.parse(evt.data) handlers.handleEvent(message); $rootScope.commands.push("RECV: " + evt.data + " TYPE:" + evt.type) ; - console.log("apply"); $rootScope.$apply(); } @@ -264,21 +263,7 @@ weechat.factory('connection', ['$rootScope', '$log', 'handlers', 'colors', 'mode } }]); -weechat.service('testService', function(){ - var count = 1; - var list = []; - this.incrementCount = function () { - count++; - list.push(count); - return list; - }; - this.getCount = function(){ - return list; - } - -}); - -weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', 'models', 'connection', 'testService', function ($rootScope, $scope, $store, models, connection, testService) { +weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', 'models', 'connection', function ($rootScope, $scope, $store, models, connection, testService) { $scope.buffers = models.model.buffers; $scope.activeBuffer = models.getActiveBuffer