@Deprecated
  public void removeResolveInfosForIntent(Intent intent, String packageName) {
    List<ResolveInfo> infoList = resolveInfoForIntent.get(intent);
    if (infoList == null) {
      infoList = new ArrayList<>();
      resolveInfoForIntent.put(intent, infoList);
    }

    for (Iterator<ResolveInfo> iterator = infoList.iterator(); iterator.hasNext(); ) {
      ResolveInfo resolveInfo = iterator.next();
      if (getPackageName(resolveInfo).equals(packageName)) {
        iterator.remove();
      }
    }
  }
@Deprecated
  public void removeResolveInfosForIntent(Intent intent, String packageName) {
    List<ResolveInfo> infoList = resolveInfoForIntent.get(intent);
    if (infoList == null) {
      infoList = new ArrayList<>();
      resolveInfoForIntent.put(intent, infoList);
    }

    for (Iterator<ResolveInfo> iterator = infoList.iterator(); iterator.hasNext(); ) {
      ResolveInfo resolveInfo = iterator.next();
      if (getPackageName(resolveInfo).equals(packageName)) {
        iterator.remove();
      }
    }
  }
@ Deprecated public void removeResolveInfosForIntent ( Intent intent , String packageName ) { List < ResolveInfo > infoList = resolveInfoForIntent . get ( intent ) ; if ( infoList == null ) { infoList = new ArrayList <> ( ) ; resolveInfoForIntent . put ( intent , infoList ) ; } for ( Iterator < ResolveInfo > iterator = infoList . iterator ( ) ; iterator . hasNext ( ) ; ) { ResolveInfo resolveInfo = iterator . next ( ) ; if ( getPackageName ( resolveInfo ) . equals ( packageName ) ) { iterator . remove ( ) ; } } }
Removes {@link ResolveInfo}s registered using {@link #addResolveInfoForIntent}.

@deprecated see note on {@link #addResolveInfoForIntent(Intent, ResolveInfo)}.
Removes { @link ResolveInfo } s registered using { @link #addResolveInfoForIntent } .