From c86dccdf0d33af867312f1a144795d407e273128 Mon Sep 17 00:00:00 2001 From: hneemann Date: Tue, 12 Jul 2016 21:23:51 +0200 Subject: [PATCH] removed some unused code --- .../digital/gui/components/data/DataSet.java | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/src/main/java/de/neemann/digital/gui/components/data/DataSet.java b/src/main/java/de/neemann/digital/gui/components/data/DataSet.java index 084a2001c..50592c88b 100644 --- a/src/main/java/de/neemann/digital/gui/components/data/DataSet.java +++ b/src/main/java/de/neemann/digital/gui/components/data/DataSet.java @@ -64,7 +64,7 @@ public class DataSet implements Iterable, Drawable { /** * Deletes all data */ - public void clear() { + synchronized public void clear() { samples.clear(); min = null; max = null; @@ -112,27 +112,13 @@ public class DataSet implements Iterable, Drawable { 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 * * @param i the index of the signal * @return max-min */ - public long getWidth(int i) { + private long getWidth(int i) { return max.getValue(i) - min.getValue(i); }