diff options
author | Alex Kutsan <akutsan@luxoft.com> | 2017-05-12 17:36:13 +0300 |
---|---|---|
committer | Alex Kutsan <akutsan@luxoft.com> | 2017-05-15 11:33:20 +0300 |
commit | bce64d5f03da1744435f7d587d0a36d9357cdf2e (patch) | |
tree | 082e7eac0668a7f52d2fbd9f763ebdb9f0b98bc4 | |
parent | dd4854501bdca7db6fa2076e2f041aaf6bdb03b6 (diff) | |
download | sdl_core-bce64d5f03da1744435f7d587d0a36d9357cdf2e.tar.gz |
Remove unused method PolicyHandler::ResetRetrySequence
5 files changed, 0 insertions, 20 deletions
diff --git a/src/components/application_manager/include/application_manager/policies/policy_handler.h b/src/components/application_manager/include/application_manager/policies/policy_handler.h index ea69b9fb7e..c4f45cc1ee 100644 --- a/src/components/application_manager/include/application_manager/policies/policy_handler.h +++ b/src/components/application_manager/include/application_manager/policies/policy_handler.h @@ -121,7 +121,6 @@ class PolicyHandler : public PolicyHandlerInterface, void GetUpdateUrls(const uint32_t service_type, EndpointUrls& out_end_points) OVERRIDE; virtual std::string GetLockScreenIconUrl() const OVERRIDE; - void ResetRetrySequence() OVERRIDE; uint32_t NextRetryTimeout() OVERRIDE; uint32_t TimeoutExchangeSec() OVERRIDE; uint32_t TimeoutExchangeMSec() OVERRIDE; diff --git a/src/components/application_manager/src/policies/policy_handler.cc b/src/components/application_manager/src/policies/policy_handler.cc index de26c23a70..1a720d9bc0 100644 --- a/src/components/application_manager/src/policies/policy_handler.cc +++ b/src/components/application_manager/src/policies/policy_handler.cc @@ -1442,11 +1442,6 @@ std::string PolicyHandler::GetLockScreenIconUrl() const { return policy_manager_->GetLockScreenIconUrl(); } -void PolicyHandler::ResetRetrySequence() { - POLICY_LIB_CHECK_VOID(); - policy_manager_->ResetRetrySequence(); -} - uint32_t PolicyHandler::NextRetryTimeout() { POLICY_LIB_CHECK(0); return policy_manager_->NextRetryTimeout(); diff --git a/src/components/application_manager/test/policy_handler_test.cc b/src/components/application_manager/test/policy_handler_test.cc index 0106ddd556..70c2f77dfb 100644 --- a/src/components/application_manager/test/policy_handler_test.cc +++ b/src/components/application_manager/test/policy_handler_test.cc @@ -500,15 +500,6 @@ TEST_F(PolicyHandlerTest, GetUpdateUrls) { policy_handler_.GetUpdateUrls(service_type, endpoints); } -TEST_F(PolicyHandlerTest, ResetRetrySequence) { - // Arrange - EnablePolicyAndPolicyManagerMock(); - // Check expectations - EXPECT_CALL(*mock_policy_manager_, ResetRetrySequence()); - // Act - policy_handler_.ResetRetrySequence(); -} - TEST_F(PolicyHandlerTest, NextRetryTimeout) { // Arrange EnablePolicyAndPolicyManagerMock(); diff --git a/src/components/include/application_manager/policies/policy_handler_interface.h b/src/components/include/application_manager/policies/policy_handler_interface.h index e1623a92c3..074a075e1f 100644 --- a/src/components/include/application_manager/policies/policy_handler_interface.h +++ b/src/components/include/application_manager/policies/policy_handler_interface.h @@ -100,7 +100,6 @@ class PolicyHandlerInterface { virtual void GetUpdateUrls(const uint32_t service_type, EndpointUrls& out_end_points) = 0; virtual std::string GetLockScreenIconUrl() const = 0; - virtual void ResetRetrySequence() = 0; virtual uint32_t NextRetryTimeout() = 0; virtual uint32_t TimeoutExchangeSec() = 0; virtual uint32_t TimeoutExchangeMSec() = 0; diff --git a/src/components/include/policy/policy_regular/policy/policy_manager.h b/src/components/include/policy/policy_regular/policy/policy_manager.h index e98a58a6d9..cd5879ef73 100644 --- a/src/components/include/policy/policy_regular/policy/policy_manager.h +++ b/src/components/include/policy/policy_regular/policy/policy_manager.h @@ -151,10 +151,6 @@ class PolicyManager : public usage_statistics::StatisticsManager { virtual std::string ForcePTExchangeAtUserRequest() = 0; /** - * Resets retry sequence - */ - virtual void ResetRetrySequence() = 0; - /** * Gets timeout to wait before next retry updating PT * If timeout is equal to zero then the retry sequence is not need. * @return timeout in seconds |