removed some unused code

This commit is contained in:
hneemann 2016-07-12 21:23:51 +02:00
parent c9d09e7b84
commit c86dccdf0d

View File

@ -64,7 +64,7 @@ public class DataSet implements Iterable<DataSample>, Drawable {
/** /**
* Deletes all data * Deletes all data
*/ */
public void clear() { synchronized public void clear() {
samples.clear(); samples.clear();
min = null; min = null;
max = null; max = null;
@ -112,27 +112,13 @@ public class DataSet implements Iterable<DataSample>, Drawable {
return samples.iterator(); return samples.iterator();
} }
/**
* @return a sample which contains all the minimum values
*/
public DataSample getMin() {
return min;
}
/**
* @return a sample which contains all the maximum values
*/
public DataSample getMax() {
return max;
}
/** /**
* Gets the width of the signal with the given index * Gets the width of the signal with the given index
* *
* @param i the index of the signal * @param i the index of the signal
* @return max-min * @return max-min
*/ */
public long getWidth(int i) { private long getWidth(int i) {
return max.getValue(i) - min.getValue(i); return max.getValue(i) - min.getValue(i);
} }