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

Commit 2fd90a7e authored by Arthur Ishiguro's avatar Arthur Ishiguro
Browse files

Remove unused variable in SensorService code

Bug: 195593357
Test: Compile
Change-Id: I763410d42e542dbe4876160adf95e540ee8c5dbe
parent 4f1dd8a0
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -164,7 +164,6 @@ void SensorService::onFirstRef() {
        sensor_t const* list;
        ssize_t count = dev.getSensorList(&list);
        if (count > 0) {
            ssize_t orientationIndex = -1;
            bool hasGyro = false, hasAccel = false, hasMag = false;
            uint32_t virtualSensorsNeeds =
                    (1<<SENSOR_TYPE_GRAVITY) |
@@ -183,9 +182,6 @@ void SensorService::onFirstRef() {
                    case SENSOR_TYPE_MAGNETIC_FIELD:
                        hasMag = true;
                        break;
                    case SENSOR_TYPE_ORIENTATION:
                        orientationIndex = i;
                        break;
                    case SENSOR_TYPE_GYROSCOPE:
                    case SENSOR_TYPE_GYROSCOPE_UNCALIBRATED:
                        hasGyro = true;
@@ -201,6 +197,8 @@ void SensorService::onFirstRef() {
                            virtualSensorsNeeds &= ~(1<<list[i].type);
                        }
                        break;
                    default:
                        break;
                }
                if (useThisSensor) {
                    if (list[i].type == SENSOR_TYPE_PROXIMITY) {