summaryrefslogtreecommitdiffstats
path: root/gps/gps.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gps/gps.cpp')
-rw-r--r--gps/gps.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/gps/gps.cpp b/gps/gps.cpp
deleted file mode 100644
index 86e3234..0000000
--- a/gps/gps.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-#include <hardware_legacy/gps.h>
-#include <cutils/properties.h>
-
-#define LOG_TAG "libhardware_legacy"
-#include <utils/Log.h>
-#include "qemu.h"
-
-static const GpsInterface* sGpsInterface = NULL;
-
-static void
-gps_find_hardware( void )
-{
-#ifdef HAVE_QEMU_GPS_HARDWARE
- if (qemu_check()) {
- sGpsInterface = gps_get_qemu_interface();
- if (sGpsInterface) {
- LOGD("using QEMU GPS Hardware emulation\n");
- return;
- }
- }
-#endif
-
-#ifdef HAVE_GPS_HARDWARE
- sGpsInterface = gps_get_hardware_interface();
-#endif
- if (!sGpsInterface)
- LOGD("no GPS hardware on this device\n");
-}
-
-const GpsInterface*
-gps_get_interface()
-{
- if (sGpsInterface == NULL)
- gps_find_hardware();
-
- return sGpsInterface;
-}