[gnome-shell] Remove unused tracking of visibility in Chrome



commit 60ae784c01e910e0431945f451f425152aaabc5d
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Feb 21 15:30:40 2011 +0100

    Remove unused tracking of visibility in Chrome
    
    https://bugzilla.gnome.org/show_bug.cgi?id=642881

 js/ui/chrome.js |   20 --------------------
 1 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/js/ui/chrome.js b/js/ui/chrome.js
index 4fbaf8d..9d2e84f 100644
--- a/js/ui/chrome.js
+++ b/js/ui/chrome.js
@@ -13,12 +13,6 @@ const Params = imports.misc.params;
 // normal mode (ie, outside the Overview), that surrounds the main
 // workspace content.
 
-const Visibility = {
-    FULL:       1,
-    FULLSCREEN: 2,
-    OVERVIEW:   3
-};
-
 const defaultParams = {
     visibleInOverview: false,
     visibleInFullscreen: false,
@@ -39,7 +33,6 @@ Chrome.prototype = {
 
         this._inFullscreen = false;
         this._inOverview = false;
-        this.visibility = Visibility.FULL;
 
         this._trackedActors = [];
 
@@ -199,19 +192,6 @@ Chrome.prototype = {
             else
                 this.actor.set_skip_paint(actorData.actor, false);
         }
-
-        let newVisibility;
-        if (this._inOverview)
-            newVisibility = Visibility.OVERVIEW;
-        else if (this._inFullscreen)
-            newVisibility = Visibility.FULLSCREEN;
-        else
-            newVisibility = Visibility.FULL;
-
-        if (newVisibility != this.visibility) {
-            this.visibility = newVisibility;
-            this.emit('visibility-changed', this.visibility);
-        }
     },
 
     _overviewShowing: function() {



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