[gnome-shell] Avoid duplicating most used applications in the AppDisplay cache



commit 04fbaf4f27e7ce6cbf7b952a607cd22eca586855
Author: Colin Walters <walters verbum org>
Date:   Fri Jun 26 18:35:48 2009 -0400

    Avoid duplicating most used applications in the AppDisplay cache
    
    All used applications should be in the database from the menus
    anyways.

 js/ui/appDisplay.js |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index b2ef0a0..a18d3af 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -344,15 +344,6 @@ AppDisplay.prototype = {
             this._addAppForId(appId);
         }
 
-        // Some applications, such as Evince, might not be in the menus,
-        // but might be returned by the applications monitor as most used
-        // applications, in which case we include them.
-        let mostUsedAppInfos = AppInfo.getMostUsedApps(MAX_ITEMS);
-        for (let i = 0; i < mostUsedAppInfos.length; i++) {
-            let appInfo = mostUsedAppInfos[i];
-            this._addApp(appInfo);
-        }         
-
         this._appsStale = false;
     },
 



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