diff options
author | AKalinich-Luxoft <AKalinich@luxoft.com> | 2018-06-15 12:53:28 +0300 |
---|---|---|
committer | AKalinich-Luxoft <AKalinich@luxoft.com> | 2018-06-15 16:51:05 +0300 |
commit | d99d7f2fa71205a5f1a69d07b1abb75ef2c1fc7f (patch) | |
tree | 5fe210904a7c1ea78da35b483446e33871940529 | |
parent | 572b06a2c5ab174a0be1a9b1526a41950564fa0a (diff) | |
download | sdl_core-d99d7f2fa71205a5f1a69d07b1abb75ef2c1fc7f.tar.gz |
Removed unused code in regular policiesfeature/get_system_time
8 files changed, 0 insertions, 37 deletions
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 f14cce6c4f..3e90cfc094 100644 --- a/src/components/include/policy/policy_regular/policy/policy_manager.h +++ b/src/components/include/policy/policy_regular/policy/policy_manager.h @@ -505,12 +505,6 @@ class PolicyManager : public usage_statistics::StatisticsManager { virtual bool HasCertificate() const = 0; /** - * @brief Sets decrypted certificate in policy table - * @param certificate content of certificate - */ - virtual void SetDecryptedCertificate(const std::string& certificate) = 0; - - /** * @brief Getter for policy settings * @return policy settings instance */ diff --git a/src/components/include/test/policy/policy_regular/policy/mock_cache_manager.h b/src/components/include/test/policy/policy_regular/policy/mock_cache_manager.h index c9f53b8606..2b8dc809a6 100644 --- a/src/components/include/test/policy/policy_regular/policy/mock_cache_manager.h +++ b/src/components/include/test/policy/policy_regular/policy/mock_cache_manager.h @@ -206,7 +206,6 @@ class MockCacheManagerInterface : public CacheManagerInterface { MOCK_METHOD1(GetHMITypes, const policy_table::AppHMITypes*(const std::string& app_id)); MOCK_CONST_METHOD0(GetCertificate, std::string()); - MOCK_CONST_METHOD1(SetDecryptedCertificate, void(const std::string&)); MOCK_METHOD1(GetGroups, const policy_table::Strings&(const PTString& app_id)); MOCK_CONST_METHOD2(AppHasHMIType, bool(const std::string& application_id, diff --git a/src/components/include/test/policy/policy_regular/policy/mock_policy_manager.h b/src/components/include/test/policy/policy_regular/policy/mock_policy_manager.h index 82012b83c7..53b29cabe7 100644 --- a/src/components/include/test/policy/policy_regular/policy/mock_policy_manager.h +++ b/src/components/include/test/policy/policy_regular/policy/mock_policy_manager.h @@ -186,7 +186,6 @@ class MockPolicyManager : public PolicyManager { MOCK_CONST_METHOD0(GetMetaInfo, const policy::MetaInfo()); MOCK_CONST_METHOD0(RetrieveCertificate, std::string()); MOCK_CONST_METHOD0(HasCertificate, bool()); - MOCK_METHOD1(SetDecryptedCertificate, void(const std::string&)); MOCK_METHOD0(ExceededIgnitionCycles, bool()); MOCK_METHOD0(ExceededDays, bool()); MOCK_METHOD0(StartPTExchange, void()); diff --git a/src/components/policy/policy_regular/include/policy/cache_manager.h b/src/components/policy/policy_regular/include/policy/cache_manager.h index f3fcfccd13..8c0acd44d2 100644 --- a/src/components/policy/policy_regular/include/policy/cache_manager.h +++ b/src/components/policy/policy_regular/include/policy/cache_manager.h @@ -280,12 +280,6 @@ class CacheManager : public CacheManagerInterface { bool IsDefaultPolicy(const std::string& app_id) const OVERRIDE; /** - * @brief Sets decrypted certificate in policy table - * @param certificate content of certificate - */ - void SetDecryptedCertificate(const std::string& certificate) const OVERRIDE; - - /** * @brief SetIsDefault Sets is_default flag for application * @param app_id app specific application * @return true in case opperation was done successfully. diff --git a/src/components/policy/policy_regular/include/policy/cache_manager_interface.h b/src/components/policy/policy_regular/include/policy/cache_manager_interface.h index 842d8274eb..9f7c7318db 100644 --- a/src/components/policy/policy_regular/include/policy/cache_manager_interface.h +++ b/src/components/policy/policy_regular/include/policy/cache_manager_interface.h @@ -277,13 +277,6 @@ class CacheManagerInterface { virtual bool IsDefaultPolicy(const std::string& app_id) const = 0; /** - * @brief Sets decrypted certificate in policy table - * @param certificate content of certificate - */ - virtual void SetDecryptedCertificate( - const std::string& certificate) const = 0; - - /** * @brief SetIsDefault Sets is_default flag for application * @param app_id app specific application * @return true in case opperation was done successfully. diff --git a/src/components/policy/policy_regular/include/policy/policy_manager_impl.h b/src/components/policy/policy_regular/include/policy/policy_manager_impl.h index 6329abbb04..941db1a67f 100644 --- a/src/components/policy/policy_regular/include/policy/policy_manager_impl.h +++ b/src/components/policy/policy_regular/include/policy/policy_manager_impl.h @@ -570,8 +570,6 @@ class PolicyManagerImpl : public PolicyManager { */ bool HasCertificate() const OVERRIDE; - void SetDecryptedCertificate(const std::string& certificate) OVERRIDE; - /** * @brief Finds the next URL that must be sent on OnSystemRequest retry * @param urls vector of vectors that contain urls for each application diff --git a/src/components/policy/policy_regular/src/cache_manager.cc b/src/components/policy/policy_regular/src/cache_manager.cc index 8390a232c3..6a142374d5 100644 --- a/src/components/policy/policy_regular/src/cache_manager.cc +++ b/src/components/policy/policy_regular/src/cache_manager.cc @@ -1290,13 +1290,6 @@ bool CacheManager::IsDefaultPolicy(const std::string& app_id) const { return result; } -void CacheManager::SetDecryptedCertificate( - const std::string& certificate) const { - CACHE_MANAGER_CHECK_VOID(); - sync_primitives::AutoLock auto_lock(cache_lock_); - *pt_->policy_table.module_config.certificate = certificate; -} - bool CacheManager::SetIsDefault(const std::string& app_id) { CACHE_MANAGER_CHECK(false); sync_primitives::AutoLock auto_lock(cache_lock_); diff --git a/src/components/policy/policy_regular/src/policy_manager_impl.cc b/src/components/policy/policy_regular/src/policy_manager_impl.cc index 4e744cf716..c033c0c8e7 100644 --- a/src/components/policy/policy_regular/src/policy_manager_impl.cc +++ b/src/components/policy/policy_regular/src/policy_manager_impl.cc @@ -1025,13 +1025,6 @@ bool PolicyManagerImpl::HasCertificate() const { return !cache_->GetCertificate().empty(); } -void PolicyManagerImpl::SetDecryptedCertificate( - const std::string& certificate) { - LOG4CXX_AUTO_TRACE(logger_); - cache_->SetDecryptedCertificate(certificate); - cache_->Backup(); -} - class CallStatusChange : public utils::Callable { public: CallStatusChange(UpdateStatusManager& upd_manager, |