diff options
author | Andriy Byzhynar <AByzhynar@luxoft.com> | 2017-08-30 15:57:59 +0300 |
---|---|---|
committer | Andriy Byzhynar <AByzhynar@luxoft.com> | 2017-08-30 15:57:59 +0300 |
commit | 098eb67dbd5693d46f472e81a00839cffd40a71f (patch) | |
tree | 7c7af8e4e30cead4b5b3ab57ea79f6bee22ab875 /src/components/policy/policy_external/src | |
parent | 639c6b43034dd2739d396c0fee57475ed9fa25a7 (diff) | |
download | sdl_core-098eb67dbd5693d46f472e81a00839cffd40a71f.tar.gz |
Remove unused and redundant code from policy
Diffstat (limited to 'src/components/policy/policy_external/src')
-rw-r--r-- | src/components/policy/policy_external/src/policy_helper.cc | 9 | ||||
-rw-r--r-- | src/components/policy/policy_external/src/policy_manager_impl.cc | 22 |
2 files changed, 0 insertions, 31 deletions
diff --git a/src/components/policy/policy_external/src/policy_helper.cc b/src/components/policy/policy_external/src/policy_helper.cc index 913a599bea..6594221f22 100644 --- a/src/components/policy/policy_external/src/policy_helper.cc +++ b/src/components/policy/policy_external/src/policy_helper.cc @@ -889,14 +889,5 @@ bool HaveGroupsChanged(const rpc::Optional<policy_table::Strings>& old_groups, Compare); } -void ProccessAppGroups::operator()( - const policy_table::ApplicationPolicies::value_type& app) { - policy_table::ApplicationPolicies::const_iterator i = - new_apps_.find(app.first); - if (i == new_apps_.end() && default_ != new_apps_.end()) { - i = default_; - } -} - #endif // SDL_REMOTE_CONTROL } // namespace policy diff --git a/src/components/policy/policy_external/src/policy_manager_impl.cc b/src/components/policy/policy_external/src/policy_manager_impl.cc index 7e7dd2b7c1..cb45840532 100644 --- a/src/components/policy/policy_external/src/policy_manager_impl.cc +++ b/src/components/policy/policy_external/src/policy_manager_impl.cc @@ -340,9 +340,6 @@ bool PolicyManagerImpl::LoadPT(const std::string& file, listener_->OnCertificateUpdated( *(pt_update->policy_table.module_config.certificate)); -#ifdef SDL_REMOTE_CONTROL - CheckPTUUpdatesChange(pt_update, policy_table_snapshot); -#endif // SDL_REMOTE_CONTROL std::map<std::string, StringArray> app_hmi_types; cache_->GetHMIAppTypeAfterUpdate(app_hmi_types); @@ -2014,25 +2011,6 @@ void PolicyManagerImpl::SendAppPermissionsChanged( listener()->OnPermissionsUpdated(application_id, notification_data); } -void PolicyManagerImpl::CheckPTUUpdatesChange( - const utils::SharedPtr<policy_table::Table> pt_update, - const utils::SharedPtr<policy_table::Table> snapshot) { - CheckRemoteGroupsChange(pt_update, snapshot); -} - -void PolicyManagerImpl::CheckRemoteGroupsChange( - const utils::SharedPtr<policy_table::Table> pt_update, - const utils::SharedPtr<policy_table::Table> snapshot) { - LOG4CXX_AUTO_TRACE(logger_); - - policy_table::ApplicationPolicies& new_apps = - pt_update->policy_table.app_policies_section.apps; - policy_table::ApplicationPolicies& old_apps = - snapshot->policy_table.app_policies_section.apps; - std::for_each( - old_apps.begin(), old_apps.end(), ProccessAppGroups(new_apps, this)); -} - void PolicyManagerImpl::OnPrimaryGroupsChanged( const std::string& application_id) { const std::vector<std::string> devices = |