Avoid duplicating most used applications in the AppDisplay cache

All used applications should be in the database from the menus
anyways.
This commit is contained in:
Colin Walters 2009-06-26 18:35:48 -04:00
parent b92263e80c
commit 04fbaf4f27

View File

@ -344,15 +344,6 @@ AppDisplay.prototype = {
this._addAppForId(appId); 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; this._appsStale = false;
}, },