summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kutsan <akutsan@luxoft.com>2017-09-06 00:46:34 +0300
committerAlexander Kutsan <akutsan@luxoft.com>2017-09-06 00:46:34 +0300
commitf7b8836d47e893b38edba5438fcbe7bd239bfe97 (patch)
tree0ad418decf9d9c8e973d6f195264aa31270b2bd6
parent542a5d20d2ada262fbd8b0b12cdbb09d7f4586f6 (diff)
downloadsdl_core-f7b8836d47e893b38edba5438fcbe7bd239bfe97.tar.gz
Removed unused CheckHMILevel function
-rw-r--r--src/components/remote_control/include/remote_control/commands/base_command_request.h3
-rw-r--r--src/components/remote_control/src/commands/base_command_request.cc25
2 files changed, 0 insertions, 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