diff options
author | Baili Feng <bailif@codeaurora.org> | 2016-08-02 18:19:55 +0800 |
---|---|---|
committer | Baili Feng <bailif@codeaurora.org> | 2016-08-04 10:40:00 +0800 |
commit | f58ae31d1b0b50315b3fb7a82e3d22f3c40d7e53 (patch) | |
tree | 095f8a395745d91a95bc4f5233588e4e2a9af615 | |
parent | 7124f9f705c8d6f04c640a3c3a84d3a904eb986e (diff) | |
download | gps-f58ae31d1b0b50315b3fb7a82e3d22f3c40d7e53.tar.gz |
Remove deprecated api LocEngExtPowerConfig
LocEngExtPowerConfig is no longer necessary.
Remove it from libloc_eng.
CRs-fixed: 1047042
Change-Id: I4a053e13a571f4a373899559d82e144f9bc82582
-rw-r--r-- | core/LocApiBase.cpp | 4 | ||||
-rw-r--r-- | core/LocApiBase.h | 2 | ||||
-rw-r--r-- | loc_api/libloc_api_50001/LocEngAdapter.h | 5 | ||||
-rw-r--r-- | loc_api/libloc_api_50001/loc_eng.cpp | 23 |
4 files changed, 0 insertions, 34 deletions
diff --git a/core/LocApiBase.cpp b/core/LocApiBase.cpp index d52f27b..fdfc537 100644 --- a/core/LocApiBase.cpp +++ b/core/LocApiBase.cpp @@ -516,10 +516,6 @@ enum loc_api_adapter_err LocApiBase:: DEFAULT_IMPL(LOC_API_ADAPTER_ERR_SUCCESS) enum loc_api_adapter_err LocApiBase:: - setExtPowerConfig(int isBatteryCharging) -DEFAULT_IMPL(LOC_API_ADAPTER_ERR_SUCCESS) - -enum loc_api_adapter_err LocApiBase:: setAGLONASSProtocol(unsigned long aGlonassProtocol) DEFAULT_IMPL(LOC_API_ADAPTER_ERR_SUCCESS) diff --git a/core/LocApiBase.h b/core/LocApiBase.h index 8849b1f..066695c 100644 --- a/core/LocApiBase.h +++ b/core/LocApiBase.h @@ -205,8 +205,6 @@ public: int gyroBatchesPerSecHigh, int algorithmConfig); virtual enum loc_api_adapter_err - setExtPowerConfig(int isBatteryCharging); - virtual enum loc_api_adapter_err setAGLONASSProtocol(unsigned long aGlonassProtocol); virtual enum loc_api_adapter_err setLPPeProtocol(unsigned long lppeCP, unsigned long lppeUP); diff --git a/loc_api/libloc_api_50001/LocEngAdapter.h b/loc_api/libloc_api_50001/LocEngAdapter.h index 60af647..416e4b7 100644 --- a/loc_api/libloc_api_50001/LocEngAdapter.h +++ b/loc_api/libloc_api_50001/LocEngAdapter.h @@ -230,11 +230,6 @@ public: algorithmConfig); } inline virtual enum loc_api_adapter_err - setExtPowerConfig(int isBatteryCharging) - { - return mLocApi->setExtPowerConfig(isBatteryCharging); - } - inline virtual enum loc_api_adapter_err setAGLONASSProtocol(unsigned long aGlonassProtocol) { return mLocApi->setAGLONASSProtocol(aGlonassProtocol); diff --git a/loc_api/libloc_api_50001/loc_eng.cpp b/loc_api/libloc_api_50001/loc_eng.cpp index 79ed037..c1cc640 100644 --- a/loc_api/libloc_api_50001/loc_eng.cpp +++ b/loc_api/libloc_api_50001/loc_eng.cpp @@ -757,29 +757,6 @@ struct LocEngSensorPerfControlConfig : public LocMsg { } }; -// case LOC_ENG_MSG_EXT_POWER_CONFIG: -struct LocEngExtPowerConfig : public LocMsg { - LocEngAdapter* mAdapter; - const int mIsBatteryCharging; - inline LocEngExtPowerConfig(LocEngAdapter* adapter, - int isBatteryCharging) : - LocMsg(), mAdapter(adapter), - mIsBatteryCharging(isBatteryCharging) - { - locallog(); - } - inline virtual void proc() const { - mAdapter->setExtPowerConfig(mIsBatteryCharging); - } - inline void locallog() const { - LOC_LOGV("LocEngExtPowerConfig - isBatteryCharging: %d", - mIsBatteryCharging); - } - inline virtual void log() const { - locallog(); - } -}; - // case LOC_ENG_MSG_REPORT_POSITION: LocEngReportPosition::LocEngReportPosition(LocAdapterBase* adapter, UlpLocation &loc, |