Removing unnecessary check of shortcut infos (now that we key removals off package names already). (Bug 6755420)

Change-Id: I13f088503e58eb021a585493e1c55eeccdffea86
This commit is contained in:
Winson Chung committed 2012-06-28 12:18:20 -07:00
1 parent dab9b11403
commit 42490a5aa0
2 files changed
+13 -43

No files matched your search

@@ -1721,24 +1721,6 @@ public class LauncherModel extends BroadcastReceiver {
}
}
/**
* Returns all the Workspace ShortcutInfos associated with a particular package.
* @param intent
* @return
*/
ArrayList<ShortcutInfo> getShortcutInfosForPackage(String packageName) {
ArrayList<ShortcutInfo> infos = new ArrayList<ShortcutInfo>();
for (ItemInfo i : sWorkspaceItems) {
if (i instanceof ShortcutInfo) {
ShortcutInfo info = (ShortcutInfo) i;
if (packageName.equals(info.getPackageName())) {
infos.add(info);
}
}
}
return infos;
}
/**
* This is called from the code that adds shortcuts from the intent receiver. This
* doesn't have a Cursor, but