Remove now unused PumpState.delivered field.

This commit is contained in:
Johannes Mockenhaupt 2018-01-31 13:54:42 +01:00
parent 1ba3a85655
commit 98d666098b
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1
2 changed files with 0 additions and 4 deletions

View file

@ -13,8 +13,6 @@ public class CommandResult {
public boolean success;
/** State of the pump *after* command execution. */
public PumpState state;
/** Bolus actually delivered if request was a bolus command. */
public double delivered;
/** History if requested by the command. */
@Nullable
public PumpHistory history;

View file

@ -186,10 +186,8 @@ public class BolusCommand extends BaseCommand {
if (cancelInProgress) {
log.debug("Stage 4: bolus was cancelled, with unknown amount delivered");
this.result.delivered = -1;
} else {
log.debug("Stage 4: full bolus of " + bolus + " U was successfully delivered");
result.delivered = bolus;
bolusProgressReporter.report(DELIVERED, 100, bolus);
}
result.success = true;