Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(analytics): remove unused event

Calin-Teodor01834903c246
diff --git a/react/features/analytics/AnalyticsEvents.ts b/react/features/analytics/AnalyticsEvents.ts
index 17c1dcb7d6..2943de460a 100644
--- a/react/features/analytics/AnalyticsEvents.ts
+++ b/react/features/analytics/AnalyticsEvents.ts
@@ -600,31 +600,6 @@ export function createRemoteVideoMenuButtonEvent(buttonName: string, attributes
};
}
-/**
- * The rtcstats websocket onclose event. We send this to amplitude in order
- * to detect trace ws prematurely closing.
- *
- * @param {Object} closeEvent - The event with which the websocket closed.
- * @returns {Object} The event in a format suitable for sending via
- * sendAnalytics.
- */
-export function createRTCStatsTraceCloseEvent(closeEvent: { code: string; reason: string; }) {
- const event: {
- action: string;
- code?: string;
- reason?: string;
- source: string;
- } = {
- action: 'trace.onclose',
- source: 'rtcstats'
- };
-
- event.code = closeEvent.code;
- event.reason = closeEvent.reason;
-
- return event;
-}
-
/**
* Creates an event indicating that an action related to screen sharing
* occurred (e.g. It was started or stopped).