diff --git a/services/sensorservice/SensorService.cpp b/services/sensorservice/SensorService.cpp index 2d35fe918..9c67be2a9 100644 --- a/services/sensorservice/SensorService.cpp +++ b/services/sensorservice/SensorService.cpp @@ -149,10 +149,6 @@ void SensorService::onFirstRef() if (orientationIndex == -1) { // some sensor HALs don't provide an orientation sensor. mUserSensorList.add(aSensor); - } else { - // if we are doing our own rotation-vector, also add - // the orientation sensor and remove the HAL provided one. - mUserSensorList.replaceAt(aSensor, orientationIndex); } }