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 c577951ec9
commit 340fbfe943

View File

@ -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;
},