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_regular/src/policy_manager_impl.cc | |
parent | 639c6b43034dd2739d396c0fee57475ed9fa25a7 (diff) | |
download | sdl_core-098eb67dbd5693d46f472e81a00839cffd40a71f.tar.gz |
Remove unused and redundant code from policy
Diffstat (limited to 'src/components/policy/policy_regular/src/policy_manager_impl.cc')
-rw-r--r-- | src/components/policy/policy_regular/src/policy_manager_impl.cc | 22 |
1 files changed, 0 insertions, 22 deletions
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 30e2be537b..75989e113c 100644 --- a/src/components/policy/policy_regular/src/policy_manager_impl.cc +++ b/src/components/policy/policy_regular/src/policy_manager_impl.cc @@ -214,9 +214,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); @@ -1246,25 +1243,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 = |