[gnome-shell] messageTray: Remove dead code



commit 0141a2be9e22b4adef870896ddd647d5b08f552a
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Apr 9 18:38:17 2015 +0200

    messageTray: Remove dead code
    
    The "clearable" concept is no longer relevant with the new design, not
    to mention that resident sources are no longer a thing either ...

 js/ui/messageTray.js |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 393f431..42c559f 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -753,10 +753,6 @@ const Source = new Lang.Class({
         return this.count > 1;
     },
 
-    get isClearable() {
-        return !this.isChat && !this.resident;
-    },
-
     countUpdated: function() {
         this.emit('count-updated');
     },
@@ -929,8 +925,6 @@ const MessageTray = new Lang.Class({
         this._notificationTimeoutId = 0;
         this._notificationRemoved = false;
 
-        this.clearableCount = 0;
-
         Main.layoutManager.addChrome(this.actor, { affectsInputRegion: false });
         Main.layoutManager.trackChrome(this._bannerBin, { affectsInputRegion: true });
 
@@ -1031,9 +1025,6 @@ const MessageTray = new Lang.Class({
             destroyId: 0,
         };
 
-        if (source.isClearable)
-            this.clearableCount++;
-
         this._sources.set(source, obj);
 
         obj.notifyId = source.connect('notify', Lang.bind(this, this._onNotify));
@@ -1046,9 +1037,6 @@ const MessageTray = new Lang.Class({
         let obj = this._sources.get(source);
         this._sources.delete(source);
 
-        if (source.isClearable)
-            this.clearableCount--;
-
         source.disconnect(obj.notifyId);
         source.disconnect(obj.destroyId);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]