sensorhal: remove unnecessary flags argument

Change-Id: I5d659bbc670aae9e8938ed87773fc40487a3fb7b
diff --git a/sensorhal/activity.cpp b/sensorhal/activity.cpp
index 6c137da..2a67fc6 100644
--- a/sensorhal/activity.cpp
+++ b/sensorhal/activity.cpp
@@ -241,12 +241,12 @@
         mPrevActivity = -1;
         mInitExitDone = false;
 
-        mHubConnection->queueBatch(
-            COMMS_SENSOR_ACTIVITY, SENSOR_FLAG_ON_CHANGE_MODE, 1000000, max_batch_report_latency_ns);
+        mHubConnection->queueBatch(COMMS_SENSOR_ACTIVITY, 1000000,
+                                   max_batch_report_latency_ns);
         mHubConnection->queueActivate(COMMS_SENSOR_ACTIVITY, true /* enable */);
     } else if (max_batch_report_latency_ns != prev_latency) {
-        mHubConnection->queueBatch(
-            COMMS_SENSOR_ACTIVITY, SENSOR_FLAG_ON_CHANGE_MODE, 1000000, max_batch_report_latency_ns);
+        mHubConnection->queueBatch(COMMS_SENSOR_ACTIVITY, 1000000,
+                                   max_batch_report_latency_ns);
     }
 
     return 0;
diff --git a/sensorhal/hubconnection.cpp b/sensorhal/hubconnection.cpp
index 5704e3a..0df7f23 100644
--- a/sensorhal/hubconnection.cpp
+++ b/sensorhal/hubconnection.cpp
@@ -1099,7 +1099,6 @@
 
 void HubConnection::queueBatch(
         int handle,
-        __attribute__((unused)) int flags,
         nsecs_t sampling_period_ns,
         nsecs_t max_report_latency_ns)
 {
diff --git a/sensorhal/hubconnection.h b/sensorhal/hubconnection.h
index 0f61800..b93f91d 100644
--- a/sensorhal/hubconnection.h
+++ b/sensorhal/hubconnection.h
@@ -53,7 +53,6 @@
     void queueSetDelay(int handle, nsecs_t delayNs);
     void queueBatch(
             int handle,
-            int flags,
             nsecs_t sampling_period_ns,
             nsecs_t max_report_latency_ns);
     void queueFlush(int handle);
diff --git a/sensorhal/sensors.cpp b/sensorhal/sensors.cpp
index 01ef500..bf8b668 100644
--- a/sensorhal/sensors.cpp
+++ b/sensorhal/sensors.cpp
@@ -106,7 +106,6 @@
 
 int SensorContext::batch(
         int handle,
-        int flags,
         int64_t sampling_period_ns,
         int64_t max_report_latency_ns) {
     ALOGI("batch");
@@ -130,9 +129,8 @@
         break;
     }
 
-    mHubConnection->queueBatch(
-            handle, flags, sampling_period_ns_clamped, max_report_latency_ns);
-
+    mHubConnection->queueBatch(handle, sampling_period_ns_clamped,
+                               max_report_latency_ns);
     return 0;
 }
 
@@ -173,8 +171,9 @@
         int flags,
         int64_t sampling_period_ns,
         int64_t max_report_latency_ns) {
+    (void) flags;
     return reinterpret_cast<SensorContext *>(dev)->batch(
-            handle, flags, sampling_period_ns, max_report_latency_ns);
+            handle, sampling_period_ns, max_report_latency_ns);
 }
 
 // static
diff --git a/sensorhal/sensors.h b/sensorhal/sensors.h
index fd034fa..69ba2d6 100644
--- a/sensorhal/sensors.h
+++ b/sensorhal/sensors.h
@@ -40,11 +40,8 @@
     int setDelay(int handle, int64_t delayNs);
     int poll(sensors_event_t *data, int count);
 
-    int batch(
-            int handle,
-            int flags,
-            int64_t sampling_period_ns,
-            int64_t max_report_latency_ns);
+    int batch(int handle, int64_t sampling_period_ns,
+              int64_t max_report_latency_ns);
 
     int flush(int handle);