public synchronized void removeSection(String section){
  String sectionDot=section + ".";
  if (isSectionDefined(section)) {
    LinkedHashSet<String> keys=new LinkedHashSet<String>(options.keySet());
    for (    String key : keys) {
      if (key.startsWith(sectionDot)) {
        removeOption(key);
      }
    }
  }
}

public synchronized void removeSection ( String section ) { String sectionDot = section + "." ; if ( isSectionDefined ( section ) ) { LinkedHashSet < String > keys = new LinkedHashSet < String > ( options . keySet ( ) ) ; for ( String key : keys ) { if ( key . startsWith ( sectionDot ) ) { removeOption ( key ) ; } } } }
removes the given section and all its options ( does nothing if it doesn ' t exist )
