Skip to content

Commit

Permalink
Delete one unused and incorrect function.
Browse files Browse the repository at this point in the history
  • Loading branch information
fcyu committed Jan 30, 2018
1 parent a212c13 commit 1e0dd6b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions src/main/java/proteomics/Types/SparseVector.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ Set<Integer> getNonzeroIdx() {
return sparse_vector.keySet();
}

boolean isNonzero(int i) {
return get(i) != 0;
}

public int getNonzeroNum() {
return sparse_vector.size();
}
Expand Down
6 changes: 0 additions & 6 deletions src/test/java/proteomics/Types/SparseVectorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,6 @@ public void getNonzeroIdx() throws Exception {
assertEquals(ground_truth, vector.getNonzeroIdx());
}

@Test
public void isNonzero() throws Exception {
assertTrue(vector.isNonzero(1));
assertFalse(vector.isNonzero(2));
}

@Test
public void getNonzeroNum() throws Exception {
assertEquals(3, vector.getNonzeroNum());
Expand Down

0 comments on commit 1e0dd6b

Please sign in to comment.