fix(notifications) remove dead code

This commit is contained in:
Saúl Ibarra Corretgé 2023-02-14 10:11:08 +01:00
parent 22ded30b61
commit 38068b33e5
1 changed files with 0 additions and 10 deletions

View File

@ -124,7 +124,6 @@ const useStyles = (theme: Theme) => {
*/ */
class NotificationsContainer extends Component<IProps> { class NotificationsContainer extends Component<IProps> {
_api: Object; _api: Object;
_timeouts: Map<string, number>;
/** /**
* Initializes a new {@code NotificationsContainer} instance. * Initializes a new {@code NotificationsContainer} instance.
@ -134,8 +133,6 @@ class NotificationsContainer extends Component<IProps> {
constructor(props: IProps) { constructor(props: IProps) {
super(props); super(props);
this._timeouts = new Map();
// Bind event handlers so they are only bound once for every instance. // Bind event handlers so they are only bound once for every instance.
this._onDismissed = this._onDismissed.bind(this); this._onDismissed = this._onDismissed.bind(this);
@ -186,13 +183,6 @@ class NotificationsContainer extends Component<IProps> {
* @returns {void} * @returns {void}
*/ */
_onDismissed(uid: string) { _onDismissed(uid: string) {
const timeout = this._timeouts.get(`${uid}`);
if (timeout) {
clearTimeout(timeout);
this._timeouts.delete(`${uid}`);
}
this.props.dispatch(hideNotification(uid)); this.props.dispatch(hideNotification(uid));
} }