Delete unused method

This commit is contained in:
edr
2024-02-17 02:09:27 +01:00
committed by GitHub
parent 703406b517
commit e95a554717

View File

@@ -58,17 +58,4 @@ public class VolumeHistory {
final double volume = sum / data.length;
addLast(volume);
}
public VolumeHistory getSnapshot(int length) {
length = Math.min(length, size());
final VolumeHistory copy = new VolumeHistory(length);
copy.mMaxVolume = this.mMaxVolume;
copy.mVolumeNorm = this.mVolumeNorm;
final int leftMost = size() - length;
for (int i = leftMost; i < size(); ++i) {
copy.mHistory.addLast(mHistory.get(i));
}
return copy;
}
}