Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
leerho committed Apr 21, 2022
1 parent 91890b6 commit de24a45
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,6 @@ void setFloatItemsArrayAt(final int index, final float value) {
wmem.putFloat(offset, value);
}

@Override
void setFloatItemsArraySubrange(final float[] srcArr, final int srcIndex, final int tgtIndex, final int numItems) {
if (readOnly) { kllSketchThrow(TGT_IS_READ_ONLY); }
final int offset =
DATA_START_ADR + getLevelsArray().length * Integer.BYTES + (tgtIndex + 2) * Float.BYTES;
wmem.putFloatArray(offset, srcArr, srcIndex, numItems);
}

@Override
void setLevelZeroSorted(final boolean sorted) {
if (readOnly) { kllSketchThrow(TGT_IS_READ_ONLY); }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,11 +356,6 @@ public void update(final double value) {
@Override //Artifact of inheritance
void setFloatItemsArrayAt(final int index, final float value) { kllSketchThrow(MUST_NOT_CALL); }

@Override //Artifact of inheritance
void setFloatItemsArraySubrange(final float[] srcArr, final int srcIndex, final int tgtIndex, final int numItems) {
kllSketchThrow(MUST_NOT_CALL);
}

@Override //Artifact of inheritance
void setMaxFloatValue(final float value) { kllSketchThrow(MUST_NOT_CALL); }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,6 @@ void incNumLevels() { } //not used here
@Override
void setFloatItemsArrayAt(final int index, final float value) { floatItems_[index] = value; }

@Override
void setFloatItemsArraySubrange(final float[] srcArr, final int srcIndex, final int tgtIndex, final int numItems) {
System.arraycopy(srcArr, srcIndex, floatItems_, tgtIndex, numItems);
}

@Override
void setLevelZeroSorted(final boolean sorted) { this.isLevelZeroSorted_ = sorted; }

Expand Down
2 changes: 0 additions & 2 deletions src/main/java/org/apache/datasketches/kll/KllSketch.java
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,6 @@ final boolean isCompactSingleItem() {

abstract void setFloatItemsArrayAt(int index, float value);

abstract void setFloatItemsArraySubrange(float[] srcArr, int srcIndex, int tgtIndex, int numItems);

final void setLevelsArray(final int[] levelsArr) {
if (readOnly) { kllSketchThrow(TGT_IS_READ_ONLY); }
this.levelsArr = levelsArr;
Expand Down

0 comments on commit de24a45

Please sign in to comment.