From 38068b33e50c958e8b4199fb1311b4e965d1db96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 14 Feb 2023 10:11:08 +0100 Subject: [PATCH] fix(notifications) remove dead code --- .../components/web/NotificationsContainer.tsx | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/react/features/notifications/components/web/NotificationsContainer.tsx b/react/features/notifications/components/web/NotificationsContainer.tsx index bf0fa98c0..a101cecbc 100644 --- a/react/features/notifications/components/web/NotificationsContainer.tsx +++ b/react/features/notifications/components/web/NotificationsContainer.tsx @@ -124,7 +124,6 @@ const useStyles = (theme: Theme) => { */ class NotificationsContainer extends Component { _api: Object; - _timeouts: Map; /** * Initializes a new {@code NotificationsContainer} instance. @@ -134,8 +133,6 @@ class NotificationsContainer extends Component { constructor(props: IProps) { super(props); - this._timeouts = new Map(); - // Bind event handlers so they are only bound once for every instance. this._onDismissed = this._onDismissed.bind(this); @@ -186,13 +183,6 @@ class NotificationsContainer extends Component { * @returns {void} */ _onDismissed(uid: string) { - const timeout = this._timeouts.get(`${uid}`); - - if (timeout) { - clearTimeout(timeout); - this._timeouts.delete(`${uid}`); - } - this.props.dispatch(hideNotification(uid)); }