ソースを参照

fix(JitsiConnection) remove unused WRONG_STATE event

dev0
Saúl Ibarra Corretgé 6ヶ月前
コミット
00199bcf44
3個のファイルの変更0行の追加11行の削除
  1. 0
    3
      JitsiConnectionEvents.spec.ts
  2. 0
    7
      JitsiConnectionEvents.ts
  3. 0
    1
      types/hand-crafted/JitsiConnectionEvents.d.ts

+ 0
- 3
JitsiConnectionEvents.spec.ts ファイルの表示

@@ -8,7 +8,6 @@ describe( "/JitsiConnectionEvents members", () => {
8 8
         CONNECTION_ESTABLISHED,
9 9
         CONNECTION_FAILED,
10 10
         CONNECTION_REDIRECTED,
11
-        WRONG_STATE,
12 11
         DISPLAY_NAME_REQUIRED,
13 12
         PROPERTIES_UPDATED,
14 13
         JitsiConnectionEvents,
@@ -20,7 +19,6 @@ describe( "/JitsiConnectionEvents members", () => {
20 19
         expect( CONNECTION_ESTABLISHED ).toBe( 'connection.connectionEstablished' );
21 20
         expect( CONNECTION_FAILED ).toBe( 'connection.connectionFailed' );
22 21
         expect( CONNECTION_REDIRECTED ).toBe( 'connection.redirected' );
23
-        expect( WRONG_STATE ).toBe( 'connection.wrongState' );
24 22
         expect( DISPLAY_NAME_REQUIRED ).toBe( 'connection.display_name_required' );
25 23
         expect( PROPERTIES_UPDATED ).toBe( 'connection.propertiesUpdated' );
26 24
 
@@ -30,7 +28,6 @@ describe( "/JitsiConnectionEvents members", () => {
30 28
         expect( JitsiConnectionEvents.CONNECTION_ESTABLISHED ).toBe( 'connection.connectionEstablished' );
31 29
         expect( JitsiConnectionEvents.CONNECTION_FAILED ).toBe( 'connection.connectionFailed' );
32 30
         expect( JitsiConnectionEvents.CONNECTION_REDIRECTED ).toBe( 'connection.redirected' );
33
-        expect( JitsiConnectionEvents.WRONG_STATE ).toBe( 'connection.wrongState' );
34 31
         expect( JitsiConnectionEvents.DISPLAY_NAME_REQUIRED ).toBe( 'connection.display_name_required' );
35 32
         expect( JitsiConnectionEvents.PROPERTIES_UPDATED ).toBe( 'connection.propertiesUpdated' );
36 33
     } );

+ 0
- 7
JitsiConnectionEvents.ts ファイルの表示

@@ -52,12 +52,6 @@ export enum JitsiConnectionEvents {
52 52
      * @param properties {object} - All available connection properties (e.g. shard, region).
53 53
      */
54 54
     PROPERTIES_UPDATED = 'connection.propertiesUpdated',
55
-
56
-    /**
57
-     * Indicates that the performed action cannot be executed because the
58
-     * connection is not in the correct state(connected, disconnected, etc.)
59
-     */
60
-    WRONG_STATE = 'connection.wrongState'
61 55
 }
62 56
 
63 57
 // exported for backward compatibility
@@ -65,6 +59,5 @@ export const CONNECTION_DISCONNECTED = JitsiConnectionEvents.CONNECTION_DISCONNE
65 59
 export const CONNECTION_ESTABLISHED = JitsiConnectionEvents.CONNECTION_ESTABLISHED;
66 60
 export const CONNECTION_FAILED = JitsiConnectionEvents.CONNECTION_FAILED;
67 61
 export const CONNECTION_REDIRECTED = JitsiConnectionEvents.CONNECTION_REDIRECTED;
68
-export const WRONG_STATE = JitsiConnectionEvents.WRONG_STATE;
69 62
 export const DISPLAY_NAME_REQUIRED = JitsiConnectionEvents.DISPLAY_NAME_REQUIRED;
70 63
 export const PROPERTIES_UPDATED = JitsiConnectionEvents.PROPERTIES_UPDATED;

+ 0
- 1
types/hand-crafted/JitsiConnectionEvents.d.ts ファイルの表示

@@ -2,6 +2,5 @@ export enum JitsiConnectionEvents {
2 2
   CONNECTION_DISCONNECTED = 'connection.connectionDisconnected',
3 3
   CONNECTION_ESTABLISHED = 'connection.connectionEstablished',
4 4
   CONNECTION_FAILED = 'connection.connectionFailed',
5
-  WRONG_STATE = 'connection.wrongState',
6 5
   DISPLAY_NAME_REQUIRED = 'connection.display_name_required'
7 6
 }

読み込み中…
キャンセル
保存