MCPcopy Create free account
hub / github.com/Qihoo360/poseidon / remove

Method remove

builder/index/src/main/java/util/IniParser.java:800–809  ·  view source on GitHub ↗

Removes an option if it exists. @param option the name of the option @return true if the option was actually removed

(String option)

Source from the content-addressed store, hash-verified

798 * @return <code>true</code> if the option was actually removed
799 */
800 public boolean remove(String option) {
801 String normed = normOption(option);
802 if (hasOption(normed)) {
803 this.lines.remove(getOption(normed));
804 this.options.remove(normed);
805 return true;
806 } else {
807 return false;
808 }
809 }
810
811 /**
812 * Adds a comment line to the end of this section. A comment spanning

Callers

nothing calls this directly

Calls 4

normOptionMethod · 0.95
hasOptionMethod · 0.95
getOptionMethod · 0.95
removeMethod · 0.45

Tested by

no test coverage detected