From 5002f739c1f5a2b2675eb28a0dd3961271c51e53 Mon Sep 17 00:00:00 2001 From: Erik Johansson Date: Wed, 22 Nov 2017 22:45:10 +0100 Subject: [PATCH] Remove unused getMinValue --- .../com/health/openscale/gui/views/BMIMeasurementView.java | 5 ----- .../com/health/openscale/gui/views/BMRMeasurementView.java | 5 ----- .../com/health/openscale/gui/views/BoneMeasurementView.java | 5 ----- .../health/openscale/gui/views/CommentMeasurementView.java | 5 ----- .../com/health/openscale/gui/views/DateMeasurementView.java | 5 ----- .../com/health/openscale/gui/views/FatMeasurementView.java | 5 ----- .../com/health/openscale/gui/views/HipMeasurementView.java | 5 ----- .../com/health/openscale/gui/views/LBWMeasurementView.java | 5 ----- .../java/com/health/openscale/gui/views/MeasurementView.java | 1 - .../health/openscale/gui/views/MuscleMeasurementView.java | 5 ----- .../com/health/openscale/gui/views/TimeMeasurementView.java | 5 ----- .../com/health/openscale/gui/views/WHRMeasurementView.java | 5 ----- .../com/health/openscale/gui/views/WHtRMeasurementView.java | 5 ----- .../com/health/openscale/gui/views/WaistMeasurementView.java | 5 ----- .../com/health/openscale/gui/views/WaterMeasurementView.java | 5 ----- .../health/openscale/gui/views/WeightMeasurementView.java | 5 ----- 16 files changed, 76 deletions(-) diff --git a/android_app/app/src/main/java/com/health/openscale/gui/views/BMIMeasurementView.java b/android_app/app/src/main/java/com/health/openscale/gui/views/BMIMeasurementView.java index 273e35d9..6e761d43 100644 --- a/android_app/app/src/main/java/com/health/openscale/gui/views/BMIMeasurementView.java +++ b/android_app/app/src/main/java/com/health/openscale/gui/views/BMIMeasurementView.java @@ -55,11 +55,6 @@ public class BMIMeasurementView extends MeasurementView { return evalSheet.evaluateBMI(value); } - @Override - public float getMinValue() { - return 10; - } - @Override public float getMaxValue() { return 50; diff --git a/android_app/app/src/main/java/com/health/openscale/gui/views/BMRMeasurementView.java b/android_app/app/src/main/java/com/health/openscale/gui/views/BMRMeasurementView.java index 365ad73d..24b2df54 100644 --- a/android_app/app/src/main/java/com/health/openscale/gui/views/BMRMeasurementView.java +++ b/android_app/app/src/main/java/com/health/openscale/gui/views/BMRMeasurementView.java @@ -55,11 +55,6 @@ public class BMRMeasurementView extends MeasurementView { return null; } - @Override - public float getMinValue() { - return 0; - } - @Override public float getMaxValue() { return 5000; diff --git a/android_app/app/src/main/java/com/health/openscale/gui/views/BoneMeasurementView.java b/android_app/app/src/main/java/com/health/openscale/gui/views/BoneMeasurementView.java index 72f1c468..d995dde6 100644 --- a/android_app/app/src/main/java/com/health/openscale/gui/views/BoneMeasurementView.java +++ b/android_app/app/src/main/java/com/health/openscale/gui/views/BoneMeasurementView.java @@ -55,11 +55,6 @@ public class BoneMeasurementView extends MeasurementView { return null; } - @Override - public float getMinValue() { - return 0; - } - @Override public float getMaxValue() { return 50; diff --git a/android_app/app/src/main/java/com/health/openscale/gui/views/CommentMeasurementView.java b/android_app/app/src/main/java/com/health/openscale/gui/views/CommentMeasurementView.java index 44f70191..95deff1e 100644 --- a/android_app/app/src/main/java/com/health/openscale/gui/views/CommentMeasurementView.java +++ b/android_app/app/src/main/java/com/health/openscale/gui/views/CommentMeasurementView.java @@ -71,11 +71,6 @@ public class CommentMeasurementView extends MeasurementView { return null; } - @Override - public float getMinValue() { - return 0; - } - @Override public float getMaxValue() { return 0; diff --git a/android_app/app/src/main/java/com/health/openscale/gui/views/DateMeasurementView.java b/android_app/app/src/main/java/com/health/openscale/gui/views/DateMeasurementView.java index 2a993e38..289eb695 100644 --- a/android_app/app/src/main/java/com/health/openscale/gui/views/DateMeasurementView.java +++ b/android_app/app/src/main/java/com/health/openscale/gui/views/DateMeasurementView.java @@ -85,11 +85,6 @@ public class DateMeasurementView extends MeasurementView { return null; } - @Override - public float getMinValue() { - return 0; - } - @Override public float getMaxValue() { return 0; diff --git a/android_app/app/src/main/java/com/health/openscale/gui/views/FatMeasurementView.java b/android_app/app/src/main/java/com/health/openscale/gui/views/FatMeasurementView.java index a3c3aec5..889ae88a 100644 --- a/android_app/app/src/main/java/com/health/openscale/gui/views/FatMeasurementView.java +++ b/android_app/app/src/main/java/com/health/openscale/gui/views/FatMeasurementView.java @@ -70,11 +70,6 @@ public class FatMeasurementView extends MeasurementView { return evalSheet.evaluateBodyFat(value); } - @Override - public float getMinValue() { - return 10; - } - @Override public float getMaxValue() { return 60; diff --git a/android_app/app/src/main/java/com/health/openscale/gui/views/HipMeasurementView.java b/android_app/app/src/main/java/com/health/openscale/gui/views/HipMeasurementView.java index b2f0b5d8..0e6b2bc7 100644 --- a/android_app/app/src/main/java/com/health/openscale/gui/views/HipMeasurementView.java +++ b/android_app/app/src/main/java/com/health/openscale/gui/views/HipMeasurementView.java @@ -55,11 +55,6 @@ public class HipMeasurementView extends MeasurementView { return null; } - @Override - public float getMinValue() { - return 30; - } - @Override public float getMaxValue() { return 200; diff --git a/android_app/app/src/main/java/com/health/openscale/gui/views/LBWMeasurementView.java b/android_app/app/src/main/java/com/health/openscale/gui/views/LBWMeasurementView.java index 45026fcd..26762ff8 100644 --- a/android_app/app/src/main/java/com/health/openscale/gui/views/LBWMeasurementView.java +++ b/android_app/app/src/main/java/com/health/openscale/gui/views/LBWMeasurementView.java @@ -70,11 +70,6 @@ public class LBWMeasurementView extends MeasurementView { return null; } - @Override - public float getMinValue() { - return 10; - } - @Override public float getMaxValue() { return 300; diff --git a/android_app/app/src/main/java/com/health/openscale/gui/views/MeasurementView.java b/android_app/app/src/main/java/com/health/openscale/gui/views/MeasurementView.java index cb392d15..351d5b87 100644 --- a/android_app/app/src/main/java/com/health/openscale/gui/views/MeasurementView.java +++ b/android_app/app/src/main/java/com/health/openscale/gui/views/MeasurementView.java @@ -205,7 +205,6 @@ public abstract class MeasurementView extends TableLayout { public abstract void updatePreferences(SharedPreferences preferences); public abstract String getUnit(); public abstract EvaluationResult evaluateSheet(EvaluationSheet evalSheet, float value); - public abstract float getMinValue(); public abstract float getMaxValue(); public float getValue() { diff --git a/android_app/app/src/main/java/com/health/openscale/gui/views/MuscleMeasurementView.java b/android_app/app/src/main/java/com/health/openscale/gui/views/MuscleMeasurementView.java index 290284a1..05299f90 100644 --- a/android_app/app/src/main/java/com/health/openscale/gui/views/MuscleMeasurementView.java +++ b/android_app/app/src/main/java/com/health/openscale/gui/views/MuscleMeasurementView.java @@ -60,11 +60,6 @@ public class MuscleMeasurementView extends MeasurementView { return evalSheet.evaluateBodyMuscle(value); } - @Override - public float getMinValue() { - return 10; - } - @Override public float getMaxValue() { return 80; diff --git a/android_app/app/src/main/java/com/health/openscale/gui/views/TimeMeasurementView.java b/android_app/app/src/main/java/com/health/openscale/gui/views/TimeMeasurementView.java index 302201fd..7a11cca3 100644 --- a/android_app/app/src/main/java/com/health/openscale/gui/views/TimeMeasurementView.java +++ b/android_app/app/src/main/java/com/health/openscale/gui/views/TimeMeasurementView.java @@ -89,11 +89,6 @@ public class TimeMeasurementView extends MeasurementView { return null; } - @Override - public float getMinValue() { - return 0; - } - @Override public float getMaxValue() { return 0; diff --git a/android_app/app/src/main/java/com/health/openscale/gui/views/WHRMeasurementView.java b/android_app/app/src/main/java/com/health/openscale/gui/views/WHRMeasurementView.java index ef9d28d3..6684740f 100644 --- a/android_app/app/src/main/java/com/health/openscale/gui/views/WHRMeasurementView.java +++ b/android_app/app/src/main/java/com/health/openscale/gui/views/WHRMeasurementView.java @@ -60,11 +60,6 @@ public class WHRMeasurementView extends MeasurementView { return evalSheet.evaluateWHR(value); } - @Override - public float getMinValue() { - return 0.5f; - } - @Override public float getMaxValue() { return 1.5f; diff --git a/android_app/app/src/main/java/com/health/openscale/gui/views/WHtRMeasurementView.java b/android_app/app/src/main/java/com/health/openscale/gui/views/WHtRMeasurementView.java index 49228621..66793e7e 100644 --- a/android_app/app/src/main/java/com/health/openscale/gui/views/WHtRMeasurementView.java +++ b/android_app/app/src/main/java/com/health/openscale/gui/views/WHtRMeasurementView.java @@ -60,11 +60,6 @@ public class WHtRMeasurementView extends MeasurementView { return evalSheet.evaluateWHtR(value); } - @Override - public float getMinValue() { - return 0; - } - @Override public float getMaxValue() { return 1; diff --git a/android_app/app/src/main/java/com/health/openscale/gui/views/WaistMeasurementView.java b/android_app/app/src/main/java/com/health/openscale/gui/views/WaistMeasurementView.java index 1c322e04..d37ec7c5 100644 --- a/android_app/app/src/main/java/com/health/openscale/gui/views/WaistMeasurementView.java +++ b/android_app/app/src/main/java/com/health/openscale/gui/views/WaistMeasurementView.java @@ -55,11 +55,6 @@ public class WaistMeasurementView extends MeasurementView { return evalSheet.evaluateWaist(value); } - @Override - public float getMinValue() { - return 30; - } - @Override public float getMaxValue() { return 200; diff --git a/android_app/app/src/main/java/com/health/openscale/gui/views/WaterMeasurementView.java b/android_app/app/src/main/java/com/health/openscale/gui/views/WaterMeasurementView.java index 846c0e55..35e955c9 100644 --- a/android_app/app/src/main/java/com/health/openscale/gui/views/WaterMeasurementView.java +++ b/android_app/app/src/main/java/com/health/openscale/gui/views/WaterMeasurementView.java @@ -70,11 +70,6 @@ public class WaterMeasurementView extends MeasurementView { return evalSheet.evaluateBodyWater(value); } - @Override - public float getMinValue() { - return 30; - } - @Override public float getMaxValue() { return 80; diff --git a/android_app/app/src/main/java/com/health/openscale/gui/views/WeightMeasurementView.java b/android_app/app/src/main/java/com/health/openscale/gui/views/WeightMeasurementView.java index 5f73b560..2ac13135 100644 --- a/android_app/app/src/main/java/com/health/openscale/gui/views/WeightMeasurementView.java +++ b/android_app/app/src/main/java/com/health/openscale/gui/views/WeightMeasurementView.java @@ -56,11 +56,6 @@ public class WeightMeasurementView extends MeasurementView { return evalSheet.evaluateWeight(value); } - @Override - public float getMinValue() { - return 30; - } - @Override public float getMaxValue() { return 300;