From f7b8836d47e893b38edba5438fcbe7bd239bfe97 Mon Sep 17 00:00:00 2001 From: Alexander Kutsan Date: Wed, 6 Sep 2017 00:46:34 +0300 Subject: Removed unused CheckHMILevel function --- .../remote_control/commands/base_command_request.h | 3 --- .../src/commands/base_command_request.cc | 25 ---------------------- 2 files changed, 28 deletions(-) diff --git a/src/components/remote_control/include/remote_control/commands/base_command_request.h b/src/components/remote_control/include/remote_control/commands/base_command_request.h index 3fd27861b2..64128b971e 100644 --- a/src/components/remote_control/include/remote_control/commands/base_command_request.h +++ b/src/components/remote_control/include/remote_control/commands/base_command_request.h @@ -249,9 +249,6 @@ class BaseCommandRequest } private: - void CheckHMILevel(application_manager::TypeAccess access, - bool hmi_consented = false); - /** * @brief CheckPolicyPermissions checks RPC permissions defined in policy * table diff --git a/src/components/remote_control/src/commands/base_command_request.cc b/src/components/remote_control/src/commands/base_command_request.cc index e74e51439b..bc6202d2a8 100644 --- a/src/components/remote_control/src/commands/base_command_request.cc +++ b/src/components/remote_control/src/commands/base_command_request.cc @@ -560,30 +560,5 @@ void BaseCommandRequest::ProcessAccessResponse( } } -void BaseCommandRequest::CheckHMILevel(application_manager::TypeAccess access, - bool user_consented) { - LOG4CXX_AUTO_TRACE(logger_); - switch (access) { - case application_manager::kAllowed: - if (user_consented) { - if (app_->hmi_level() == mobile_apis::HMILevel::eType::HMI_NONE) { - LOG4CXX_DEBUG(logger_, - "RSDL functionality for " - << app_->name().c_str() - << " is auto allowed; setting BACKGROUND level."); - service_->ChangeNotifyHMILevel( - app_, mobile_apis::HMILevel::eType::HMI_BACKGROUND); - } - } - break; - case application_manager::kDisallowed: - default: - LOG4CXX_DEBUG(logger_, - "No access information or disallowed: " - << "do nothing about hmi levels"); - break; - } -} - } // namespace commands } // namespace remote_control -- cgit v1.2.1