Procházet zdrojové kódy

Removes unused event ('InLastNChangeEvent').

dev1
damencho před 8 roky
rodič
revize
7da4ab76a5

+ 0
- 3
JitsiConferenceEventManager.js Zobrazit soubor

@@ -494,9 +494,6 @@ JitsiConferenceEventManager.prototype.setupRTCListeners = function() {
494 494
             { value: now });
495 495
     });
496 496
 
497
-    this.rtcForwarder.forward(RTCEvents.LASTN_CHANGED,
498
-        JitsiConferenceEvents.IN_LAST_N_CHANGED);
499
-
500 497
     this.rtcForwarder.forward(RTCEvents.LASTN_ENDPOINT_CHANGED,
501 498
         JitsiConferenceEvents.LAST_N_ENDPOINTS_CHANGED);
502 499
 

+ 0
- 5
JitsiConferenceEvents.js Zobrazit soubor

@@ -83,11 +83,6 @@ export const DTMF_SUPPORT_CHANGED = 'conference.dtmfSupportChanged';
83 83
  */
84 84
 export const ENDPOINT_MESSAGE_RECEIVED = 'conference.endpoint_message_received';
85 85
 
86
-/**
87
- * You are included / excluded in somebody's last N set
88
- */
89
-export const IN_LAST_N_CHANGED = 'conference.inLastNChanged';
90
-
91 86
 /**
92 87
  * You are kicked from the conference.
93 88
  */

+ 0
- 26
modules/RTC/DataChannels.js Zobrazit soubor

@@ -95,32 +95,6 @@ DataChannels.prototype.onDataChannel = function(event) {
95 95
                     dominantSpeakerEndpoint);
96 96
                 self.eventEmitter.emit(RTCEvents.DOMINANT_SPEAKER_CHANGED,
97 97
                   dominantSpeakerEndpoint);
98
-            } else if (colibriClass === 'InLastNChangeEvent') {
99
-                let oldValue = obj.oldValue;
100
-                let newValue = obj.newValue;
101
-
102
-                // Make sure that oldValue and newValue are of type boolean.
103
-                let type;
104
-
105
-                if ((type = typeof oldValue) !== 'boolean') {
106
-                    if (type === 'string') {
107
-                        oldValue = oldValue === 'true';
108
-                    } else {
109
-                        oldValue = Boolean(oldValue);
110
-                    }
111
-                }
112
-                if ((type = typeof newValue) !== 'boolean') {
113
-                    if (type === 'string') {
114
-                        newValue = newValue === 'true';
115
-                    } else {
116
-                        newValue = Boolean(newValue);
117
-                    }
118
-                }
119
-
120
-                self.eventEmitter.emit(
121
-                    RTCEvents.LASTN_CHANGED,
122
-                    oldValue,
123
-                    newValue);
124 98
             } else if (colibriClass === 'LastNEndpointsChangeEvent') {
125 99
                 // The new/latest list of last-n endpoint IDs.
126 100
                 const lastNEndpoints = obj.lastNEndpoints;

+ 0
- 1
service/RTC/RTCEvents.js Zobrazit soubor

@@ -12,7 +12,6 @@ const RTCEvents = {
12 12
     RTC_READY: 'rtc.ready',
13 13
     DATA_CHANNEL_OPEN: 'rtc.data_channel_open',
14 14
     ENDPOINT_CONN_STATUS_CHANGED: 'rtc.endpoint_conn_status_changed',
15
-    LASTN_CHANGED: 'rtc.lastn_changed',
16 15
     DOMINANT_SPEAKER_CHANGED: 'rtc.dominant_speaker_changed',
17 16
     LASTN_ENDPOINT_CHANGED: 'rtc.lastn_endpoint_changed',
18 17
     AVAILABLE_DEVICES_CHANGED: 'rtc.available_devices_changed',

Načítá se…
Zrušit
Uložit