From 158ca9746c7fd9f755a7e47445003f0ae0c6746d Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 1 Aug 2013 22:48:33 -0400 Subject: [PATCH] messageTray: Remove some dead code notificationClosed is never set. --- js/ui/messageTray.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index bf333ec19..41ae340d6 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1709,7 +1709,6 @@ const MessageTray = new Lang.Class({ this._notificationHovered = false; this._keyboardVisible = false; - this._notificationClosed = false; this._notificationState = State.HIDDEN; this._notificationTimeoutId = 0; this._notificationExpandedId = 0; @@ -2286,7 +2285,7 @@ const MessageTray = new Lang.Class({ let notificationLockedOut = !hasNotifications && this._notification; let notificationMustClose = (this._notificationRemoved || notificationLockedOut || (notificationExpired && this._userActiveWhileNotificationShown) || - this._notificationClosed || this._traySummoned); + this._traySummoned); let canShowNotification = notificationsPending && this._trayState == State.HIDDEN && !this._traySummoned; if (this._notificationState == State.HIDDEN) {