public void removeSettingsListener(String name,String option){
  for (ListIterator<SettingsListenerInfo> lit=allListeners.listIterator(); lit.hasNext(); ) {
    SettingsListenerInfo info=lit.next();
    if (info.equals(name,option)) {
      lit.remove();
      String key=info.getKey();
      List<ISettingsListener> listenersForKey=listenersByKey.get(key);
      listenersForKey.remove(info.getListener());
      if (listenersForKey.isEmpty()) {
        listenersByKey.remove(key);
      }
    }
  }
}

public void removeSettingsListener ( String name , String option ) { for ( ListIterator < SettingsListenerInfo > lit = allListeners . listIterator ( ) ; lit . hasNext ( ) ; ) { SettingsListenerInfo info = lit . next ( ) ; if ( info . equals ( name , option ) ) { lit . remove ( ) ; String key = info . getKey ( ) ; List < ISettingsListener > listenersForKey = listenersByKey . get ( key ) ; listenersForKey . remove ( info . getListener ( ) ) ; if ( listenersForKey . isEmpty ( ) ) { listenersByKey . remove ( key ) ; } } } }
remove the settings listeners matching the name and option parameters .
