Просмотр исходного кода

Remove unused EventEmitter

dev1
Lyubomir Marinov 9 лет назад
Родитель
Сommit
dbe731ca63
1 измененных файлов: 0 добавлений и 5 удалений
  1. 0
    5
      modules/statistics/statistics.js

+ 0
- 5
modules/statistics/statistics.js Просмотреть файл

@@ -27,8 +27,6 @@ function loadCallStatsAPI() {
27 27
  */
28 28
 var LOG_INTERVAL = 60000;
29 29
 
30
-var eventEmitter = new EventEmitter();
31
-
32 30
 function Statistics(xmpp, options) {
33 31
     this.rtpStats = null;
34 32
     this.eventEmitter = new EventEmitter();
@@ -104,9 +102,6 @@ Statistics.prototype.dispose = function () {
104 102
         this.stopRemoteStats();
105 103
         if(this.eventEmitter)
106 104
             this.eventEmitter.removeAllListeners();
107
-
108
-        if(eventEmitter)
109
-            eventEmitter.removeAllListeners();
110 105
     }
111 106
 };
112 107
 

Загрузка…
Отмена
Сохранить