messageTray: Remove some dead code

notificationClosed is never set.
This commit is contained in:
Jasper St. Pierre 2013-08-01 22:48:33 -04:00
parent c58a2e8e46
commit 158ca9746c

View File

@ -1709,7 +1709,6 @@ const MessageTray = new Lang.Class({
this._notificationHovered = false; this._notificationHovered = false;
this._keyboardVisible = false; this._keyboardVisible = false;
this._notificationClosed = false;
this._notificationState = State.HIDDEN; this._notificationState = State.HIDDEN;
this._notificationTimeoutId = 0; this._notificationTimeoutId = 0;
this._notificationExpandedId = 0; this._notificationExpandedId = 0;
@ -2286,7 +2285,7 @@ const MessageTray = new Lang.Class({
let notificationLockedOut = !hasNotifications && this._notification; let notificationLockedOut = !hasNotifications && this._notification;
let notificationMustClose = (this._notificationRemoved || notificationLockedOut || let notificationMustClose = (this._notificationRemoved || notificationLockedOut ||
(notificationExpired && this._userActiveWhileNotificationShown) || (notificationExpired && this._userActiveWhileNotificationShown) ||
this._notificationClosed || this._traySummoned); this._traySummoned);
let canShowNotification = notificationsPending && this._trayState == State.HIDDEN && !this._traySummoned; let canShowNotification = notificationsPending && this._trayState == State.HIDDEN && !this._traySummoned;
if (this._notificationState == State.HIDDEN) { if (this._notificationState == State.HIDDEN) {