summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander <akutsan@luxoft.com>2018-08-15 15:14:03 +0300
committerAlexander <akutsan@luxoft.com>2018-08-21 12:30:03 +0300
commit0d5978fa6a6b0959cd95f5c805cb64c39b1a9411 (patch)
tree8ec76bfc917bca9b6d00e1c4052ff5a7ad76a4bd
parent429972ec7b281acf5358d607962d289c75f1221f (diff)
downloadsdl_core-0d5978fa6a6b0959cd95f5c805cb64c39b1a9411.tar.gz
Remove deprecated DisconnectedJustBeforeIgnOff method
-rw-r--r--src/components/application_manager/include/application_manager/resumption/resume_ctrl_impl.h3
-rw-r--r--src/components/application_manager/src/resumption/resume_ctrl_impl.cc23
2 files changed, 0 insertions, 26 deletions
diff --git a/src/components/application_manager/include/application_manager/resumption/resume_ctrl_impl.h b/src/components/application_manager/include/application_manager/resumption/resume_ctrl_impl.h
index c316d11d86..e749118140 100644
--- a/src/components/application_manager/include/application_manager/resumption/resume_ctrl_impl.h
+++ b/src/components/application_manager/include/application_manager/resumption/resume_ctrl_impl.h
@@ -432,9 +432,6 @@ class ResumeCtrlImpl : public ResumeCtrl,
*/
bool CheckLowVoltageRestrictions(const smart_objects::SmartObject& saved_app);
- DEPRECATED bool DisconnectedJustBeforeIgnOff(
- const smart_objects::SmartObject& saved_app);
-
/**
* @brief Checks if saved HMI level is applicable for resumption
* @param saved_app application specific section from backup file
diff --git a/src/components/application_manager/src/resumption/resume_ctrl_impl.cc b/src/components/application_manager/src/resumption/resume_ctrl_impl.cc
index 80f45d6980..3e77078ee5 100644
--- a/src/components/application_manager/src/resumption/resume_ctrl_impl.cc
+++ b/src/components/application_manager/src/resumption/resume_ctrl_impl.cc
@@ -795,29 +795,6 @@ bool ResumeCtrlImpl::CheckLowVoltageRestrictions(
return true;
}
-DEPRECATED bool ResumeCtrlImpl::DisconnectedJustBeforeIgnOff(
- const smart_objects::SmartObject& saved_app) {
- using namespace date_time;
- LOG4CXX_AUTO_TRACE(logger_);
- DCHECK_OR_RETURN(saved_app.keyExists(strings::time_stamp), false);
-
- const time_t time_stamp =
- static_cast<time_t>(saved_app[strings::time_stamp].asInt());
- const time_t ign_off_time =
- static_cast<time_t>(resumption_storage_->GetIgnOffTime());
-
- const uint32_t sec_spent_before_ign = labs(ign_off_time - time_stamp);
- LOG4CXX_DEBUG(
- logger_,
- "ign_off_time "
- << ign_off_time << "; app_disconnect_time " << time_stamp
- << "; sec_spent_before_ign " << sec_spent_before_ign
- << "; resumption_delay_before_ign "
- << application_manager_.get_settings().resumption_delay_before_ign());
- return sec_spent_before_ign <=
- application_manager_.get_settings().resumption_delay_before_ign();
-}
-
bool ResumeCtrlImpl::CheckDelayBeforeIgnOff(
const smart_objects::SmartObject& saved_app) const {
using namespace date_time;