Removes an option from a section if it exists. Will not remove options from the common section if it's not directly addressed. @param section the section's name @param option the option's name @return true if the option was actually removed @throws IniParser.NoSuchSectionException no
(String section, String option)
| 297 | * @throws IniParser.NoSuchSectionException no section with the given name exists |
| 298 | */ |
| 299 | public boolean remove(String section, String option) { |
| 300 | if (hasSection(section)) { |
| 301 | return getSection(section).remove(option); |
| 302 | } else { |
| 303 | throw new NoSuchSectionException(section); |
| 304 | } |
| 305 | } |
| 306 | |
| 307 | /** |
| 308 | * Checks whether an option exists in a given section. Options in the |
no test coverage detected