[gnome-shell] messageTray: Remove some dead code
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] messageTray: Remove some dead code
- Date: Tue, 6 Aug 2013 15:07:46 +0000 (UTC)
commit 158ca9746c7fd9f755a7e47445003f0ae0c6746d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Aug 1 22:48:33 2013 -0400
messageTray: Remove some dead code
notificationClosed is never set.
js/ui/messageTray.js | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index bf333ec..41ae340 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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]