Skip to content

Commit

Permalink
remove check for multiple prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
souless94 committed Nov 7, 2018
1 parent 7f9f6d4 commit 095cbf9
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,6 @@ public List<String> getAllValues(Prefix prefix) {
return new ArrayList<>(argMultimap.get(prefix));
}

/**
* checks if there argMultimap contains only 1 prefix for each input by the user
* returns true if there is only 1.
*/
public boolean isOnlyOnePrefix(Prefix prefix) {
int noOfInput = this.getAllValues(prefix).size();
return noOfInput == 1;
}

/**
* Returns the preamble (text before the first valid prefix). Trims any leading/trailing
* spaces.
Expand Down

0 comments on commit 095cbf9

Please sign in to comment.