remove rarely used clone library
This commit is contained in:
parent
6ba485d9cd
commit
3d521fd412
2 changed files with 14 additions and 6 deletions
|
@ -267,7 +267,6 @@ dependencies {
|
||||||
implementation "com.google.guava:guava:24.1-jre"
|
implementation "com.google.guava:guava:24.1-jre"
|
||||||
|
|
||||||
implementation "net.danlew:android.joda:2.10.3"
|
implementation "net.danlew:android.joda:2.10.3"
|
||||||
implementation "uk.com.robust-it:cloning:1.9.9"
|
|
||||||
|
|
||||||
implementation 'org.mozilla:rhino:1.7.7.2'
|
implementation 'org.mozilla:rhino:1.7.7.2'
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
package info.nightscout.androidaps.data;
|
package info.nightscout.androidaps.data;
|
||||||
|
|
||||||
import com.rits.cloning.Cloner;
|
|
||||||
|
|
||||||
import org.json.JSONException;
|
import org.json.JSONException;
|
||||||
import org.json.JSONObject;
|
import org.json.JSONObject;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
|
@ -37,8 +35,19 @@ public class IobTotal implements DataPointWithLabelInterface {
|
||||||
|
|
||||||
|
|
||||||
public IobTotal copy() {
|
public IobTotal copy() {
|
||||||
Cloner cloner = new Cloner();
|
IobTotal i = new IobTotal(time);
|
||||||
return cloner.deepClone(this);
|
i.iob = iob;
|
||||||
|
i.activity = activity;
|
||||||
|
i.bolussnooze = bolussnooze;
|
||||||
|
i.basaliob = basaliob;
|
||||||
|
i.netbasalinsulin = netbasalinsulin;
|
||||||
|
i.hightempinsulin = hightempinsulin;
|
||||||
|
i.lastBolusTime = lastBolusTime;
|
||||||
|
if (iobWithZeroTemp != null) i.iobWithZeroTemp = iobWithZeroTemp.copy();
|
||||||
|
i.netInsulin = netInsulin;
|
||||||
|
i.netRatio = netRatio;
|
||||||
|
i.extendedBolusInsulin = extendedBolusInsulin;
|
||||||
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IobTotal(long time) {
|
public IobTotal(long time) {
|
||||||
|
@ -137,7 +146,7 @@ public class IobTotal implements DataPointWithLabelInterface {
|
||||||
|
|
||||||
// DataPoint interface
|
// DataPoint interface
|
||||||
|
|
||||||
int color;
|
private int color;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public double getX() {
|
public double getX() {
|
||||||
|
|
Loading…
Reference in a new issue