Clean up several functions as a result of a
better approach in GARDEn app for Privacy Change-Id: Ia030385d5ee26305ea041258cc3fb664735983be CRs-fixed: 2424763
This commit is contained in:
parent
a65b865a1b
commit
9f37d8bb51
3 changed files with 0 additions and 22 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
#include <map>
|
||||
|
||||
#include "LocationAPI.h"
|
||||
#include <gps_extended_c.h>
|
||||
#include <loc_pla.h>
|
||||
#include <log_util.h>
|
||||
|
||||
|
@ -253,9 +252,6 @@ public:
|
|||
inline virtual void onGnssLocationInfoCb(
|
||||
GnssLocationInfoNotification /*gnssLocationInfoNotification*/) {}
|
||||
|
||||
inline virtual void onGnssNfwStatusCb(
|
||||
GnssNfwNotification /*notification*/) {}
|
||||
|
||||
inline virtual void onBatchingCb(size_t /*count*/, Location* /*location*/,
|
||||
BatchingOptions /*batchingOptions*/) {}
|
||||
inline virtual void onBatchingStatusCb(BatchingStatusInfo /*batchingStatus*/,
|
||||
|
|
|
@ -85,7 +85,6 @@ struct GnssInterface {
|
|||
void (*getGnssEnergyConsumed)(GnssEnergyConsumedCallback energyConsumedCb);
|
||||
void (*enableNfwLocationAccess)(bool enable);
|
||||
void (*nfwInit)(const NfwCbInfo& cbInfo);
|
||||
uint8_t (*getGpsLock)();
|
||||
void (*getPowerStateChanges)(void* powerStateCb);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue