Skip to content
Permalink
Browse files
Removed test and method isMarkValid() as requested.
  • Loading branch information
leerho committed Jan 12, 2022
1 parent b4a7279 commit 7066e8aad235089238c59d99a704f4a546610abe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
@@ -785,10 +785,6 @@ T getItem(final int idx) {
return weights_.get(idx);
}

boolean isMarksValid() {
return marks_ != null;
}

// package-private: Relies on ArrayList for bounds checking and assumes caller knows how to
// handle a null from the middle of the list.
boolean getMark(final int idx) { return marks_.get(idx); }
@@ -23,7 +23,6 @@
import static org.apache.datasketches.sampling.PreambleUtil.PREAMBLE_LONGS_BYTE;
import static org.apache.datasketches.sampling.PreambleUtil.SER_VER_BYTE;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertNull;
import static org.testng.Assert.assertTrue;
import static org.testng.Assert.fail;
@@ -519,7 +518,6 @@ public void checkReset() {
assertEquals(sketch.getN(), 2 * k);
assertEquals(sketch.getHRegionCount(), 0);
assertEquals(sketch.getRRegionCount(), k);
assertFalse(sketch.isMarksValid());
sketch.reset();
assertEquals(sketch.getN(), 0);
assertEquals(sketch.getHRegionCount(), 0);

0 comments on commit 7066e8a

Please sign in to comment.