Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7014fbd7 authored by Todd Poynor's avatar Todd Poynor
Browse files

batteryservice: remove BatteryProperties fields not sent to BatteryService

Change-Id: I1116ebf0e21117fd37df7bfc41cb8ebaf9361faa
parent 2130192c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -59,8 +59,6 @@ struct BatteryProperties {
    bool batteryPresent;
    int batteryLevel;
    int batteryVoltage;
    int batteryCurrentNow;
    int batteryChargeCounter;
    int batteryTemperature;
    String8 batteryTechnology;

+0 −4
Original line number Diff line number Diff line
@@ -38,8 +38,6 @@ status_t BatteryProperties::readFromParcel(Parcel* p) {
    batteryPresent = p->readInt32() == 1 ? true : false;
    batteryLevel = p->readInt32();
    batteryVoltage = p->readInt32();
    batteryCurrentNow = p->readInt32();
    batteryChargeCounter = p->readInt32();
    batteryTemperature = p->readInt32();
    batteryTechnology = String8((p->readString16()).string());
    return OK;
@@ -54,8 +52,6 @@ status_t BatteryProperties::writeToParcel(Parcel* p) const {
    p->writeInt32(batteryPresent ? 1 : 0);
    p->writeInt32(batteryLevel);
    p->writeInt32(batteryVoltage);
    p->writeInt32(batteryCurrentNow);
    p->writeInt32(batteryChargeCounter);
    p->writeInt32(batteryTemperature);
    p->writeString16(String16(batteryTechnology));
    return OK;