Remove not needed functions

This commit is contained in:
Tim Gunn 2020-05-21 10:21:37 +12:00
parent bf412ea798
commit 87782377a5
No known key found for this signature in database
GPG key ID: C9BC1E9D0D0AED8C

View file

@ -523,29 +523,13 @@ public class Profile {
return ret; return ret;
} }
public double getTargetUnits() {
if (units.equals(Constants.MGDL)) {
return getTargetMgdl(secondsFromMidnight());
} else {
return getTargetMmol(secondsFromMidnight());
}
}
public double getTargetMgdl() { public double getTargetMgdl() {
return getTargetMgdl(secondsFromMidnight()); return getTargetMgdl(secondsFromMidnight());
} }
public double getTargetMmol() {
return getTargetMmol(secondsFromMidnight());
}
public double getTargetMgdl(int timeAsSeconds) { public double getTargetMgdl(int timeAsSeconds) {
return toMgdl((getTargetLowTimeFromMidnight(timeAsSeconds) + getTargetHighTimeFromMidnight(timeAsSeconds)) / 2, units); return toMgdl((getTargetLowTimeFromMidnight(timeAsSeconds) + getTargetHighTimeFromMidnight(timeAsSeconds)) / 2, units);
} }
public double getTargetMmol(int timeAsSeconds) {
return toMmol((getTargetLowTimeFromMidnight(timeAsSeconds) + getTargetHighTimeFromMidnight(timeAsSeconds)) / 2, units);
}
public double getTargetLowMgdl() { public double getTargetLowMgdl() {
return toMgdl(getTargetLowTimeFromMidnight(secondsFromMidnight()), units); return toMgdl(getTargetLowTimeFromMidnight(secondsFromMidnight()), units);
} }