Skip to content

Commit

Permalink
Removing unused method count for the exercise nucleotide counter (#2605)
Browse files Browse the repository at this point in the history
* Removing unused method count for the exercise nucleotide counter

* deleting unused version file

Fixes #2604
  • Loading branch information
manumafe98 authored Dec 26, 2023
1 parent d49ab92 commit e3791e8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,6 @@ final class NucleotideCounter {
}
}

int count(char base) {
if (isCountable(base)) {
throw new IllegalArgumentException(base + " is not a nucleotide");
}

try {
return nucleotideCounts().get(base);
} catch (NullPointerException e) {
return 0;
}
}

private static boolean isCountable(char base) {
final String countableNucleoTides = "ACGT";
return countableNucleoTides.indexOf(base) == -1;
Expand Down
1 change: 0 additions & 1 deletion exercises/practice/nucleotide-count/.meta/version

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ class NucleotideCounter {
throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
}

int count(char base) {
throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
}

Map<Character, Integer> nucleotideCounts() {
throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
}
Expand Down

0 comments on commit e3791e8

Please sign in to comment.