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



commit 340fbfe943dbcfa6d25b62149d89af63c838acea
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 3729b14..aa3495f 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -343,15 +343,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]