Fix compilation warning in sensors_qemu.c
_sensorIdFromName is not used.
Bug: 145244672
Test: build
Change-Id: Ie49033c30118a927049515823e6b401900068fb1
Signed-off-by: Roman Kiryanov <rkir@google.com>
diff --git a/sensors/sensors_qemu.c b/sensors/sensors_qemu.c
index 85f1518..5312260 100644
--- a/sensors/sensors_qemu.c
+++ b/sensors/sensors_qemu.c
@@ -110,21 +110,6 @@
return "<UNKNOWN>";
}
-static int
-_sensorIdFromName( const char* name )
-{
- int nn;
-
- if (name == NULL)
- return -1;
-
- for (nn = 0; nn < MAX_NUM_SENSORS; nn++)
- if (!strcmp(name, _sensorIds[nn].name))
- return _sensorIds[nn].id;
-
- return -1;
-}
-
/* return the current time in nanoseconds */
static int64_t now_ns(void) {
struct timespec ts;