diff options
author | Mike Cailean <mcailean@codeaurora.org> | 2019-03-27 17:43:29 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-04-16 14:54:22 -0700 |
commit | 9f37d8bb5196b15b161a83235b0d13878e727de6 (patch) | |
tree | fad80e29ba2b77ea09c84db1720b30980bdd46f6 /gnss | |
parent | a65b865a1bbc600c78cda42fcc53e42d3b7cc49c (diff) | |
download | gps-9f37d8bb5196b15b161a83235b0d13878e727de6.tar.gz |
Clean up several functions as a result of a
better approach in GARDEn app for Privacy
Change-Id: Ia030385d5ee26305ea041258cc3fb664735983be
CRs-fixed: 2424763
Diffstat (limited to 'gnss')
-rw-r--r-- | gnss/location_gnss.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/gnss/location_gnss.cpp b/gnss/location_gnss.cpp index 4b2421a..43665b4 100644 --- a/gnss/location_gnss.cpp +++ b/gnss/location_gnss.cpp @@ -70,7 +70,6 @@ static void updateConnectionStatus(bool connected, int8_t type, bool roaming = f static void getGnssEnergyConsumed(GnssEnergyConsumedCallback energyConsumedCb); static void enableNfwLocationAccess(bool enable); static void nfwInit(const NfwCbInfo& cbInfo); -static uint8_t getGpsLock(); static void getPowerStateChanges(void* powerStateCb); static void odcpiInit(const OdcpiRequestCallback& callback); @@ -114,7 +113,6 @@ static const GnssInterface gGnssInterface = { getGnssEnergyConsumed, enableNfwLocationAccess, nfwInit, - getGpsLock, getPowerStateChanges }; @@ -369,24 +367,9 @@ static void nfwInit(const NfwCbInfo& cbInfo) { gGnssAdapter->initNfwCommand(cbInfo); } } - -static uint8_t getGpsLock() { - if (NULL != gGnssAdapter) { - return ContextBase::mGps_conf.GPS_LOCK; - } else { - /* In case gGnssAdapter is NULL - just return 0x3 which means both - AFW and NFW are locked (the bits are NFW - for 2^1 and AFW for 2^0) */ - LOC_LOGe("gGnssAdapter is NULL"); - return 0x3; - } -} - static void getPowerStateChanges(void* powerStateCb) { if (NULL != gGnssAdapter) { gGnssAdapter->getPowerStateChangesCommand(powerStateCb); } } - |