diff options
author | ypostolov <ypostolov@luxoft.com> | 2020-02-17 19:48:05 +0200 |
---|---|---|
committer | yurii <ypostolov> | 2020-03-26 15:02:49 +0200 |
commit | 9d8eda9d41cdf57ec5076d35bdc5e389d8ffafc5 (patch) | |
tree | b0c991d479b556239cf1b563e10564e21a9e853c | |
parent | caee951663139c03dfb7132f1ba82121580de410 (diff) | |
download | sdl_core-9d8eda9d41cdf57ec5076d35bdc5e389d8ffafc5.tar.gz |
fixed issue unusedFunction
5 files changed, 0 insertions, 30 deletions
diff --git a/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/hmi/rc_on_remote_control_settings_notification.cc b/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/hmi/rc_on_remote_control_settings_notification.cc index f82b64dcfb..f0004ba24c 100644 --- a/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/hmi/rc_on_remote_control_settings_notification.cc +++ b/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/hmi/rc_on_remote_control_settings_notification.cc @@ -65,16 +65,6 @@ RCOnRemoteControlSettingsNotification::RCOnRemoteControlSettingsNotification( RCOnRemoteControlSettingsNotification:: ~RCOnRemoteControlSettingsNotification() {} -// cppcheck-suppress unusedFunction -hmi_apis::Common_RCAccessMode::eType AccessModeFromString( - const std::string& access_mode) { - std::map<std::string, hmi_apis::Common_RCAccessMode::eType>::const_iterator - mode = access_modes.find(access_mode); - return access_modes.end() != mode - ? mode->second - : hmi_apis::Common_RCAccessMode::INVALID_ENUM; -} - std::string AccessModeToString( const hmi_apis::Common_RCAccessMode::eType access_mode) { std::map<std::string, hmi_apis::Common_RCAccessMode::eType>::const_iterator diff --git a/src/components/application_manager/src/application_impl.cc b/src/components/application_manager/src/application_impl.cc index e42df2c8a5..8aac7d3302 100644 --- a/src/components/application_manager/src/application_impl.cc +++ b/src/components/application_manager/src/application_impl.cc @@ -462,11 +462,6 @@ void ApplicationImpl::set_is_media_application(bool is_media) { is_media_ = is_media; } -// cppcheck-suppress unusedFunction -bool IsTTSState(const HmiStatePtr state) { - return state->state_id() == HmiState::STATE_ID_TTS_SESSION; -} - void ApplicationImpl::set_tts_properties_in_none(bool active) { tts_properties_in_none_ = active; } diff --git a/src/components/include/protocol/service_type.h b/src/components/include/protocol/service_type.h index 803b8106b8..77a095f7e9 100644 --- a/src/components/include/protocol/service_type.h +++ b/src/components/include/protocol/service_type.h @@ -79,7 +79,6 @@ enum ServiceType { * Service types to binary stream */ ServiceType ServiceTypeFromByte(uint8_t type); -uint8_t ServiceTypeToByte(ServiceType type); } // namespace protocol_handler #endif // SRC_COMPONENTS_INCLUDE_PROTOCOL_SERVICE_TYPE_H_ diff --git a/src/components/protocol/src/service_type.cc b/src/components/protocol/src/service_type.cc index 7ed3f9d848..ef0634fe39 100644 --- a/src/components/protocol/src/service_type.cc +++ b/src/components/protocol/src/service_type.cc @@ -63,10 +63,4 @@ ServiceType ServiceTypeFromByte(uint8_t byte) { return valid_type ? type : kInvalidServiceType; } -// cppcheck-suppress unusedFunction -uint8_t ServiceTypeToByte(ServiceType type) { - DCHECK(IsValid(type)); - return uint8_t(type); -} - } // namespace protocol_handler diff --git a/src/components/transport_manager/test/network_interface_listener_test.cc b/src/components/transport_manager/test/network_interface_listener_test.cc index 1c84d9db0b..ed1f90b381 100644 --- a/src/components/transport_manager/test/network_interface_listener_test.cc +++ b/src/components/transport_manager/test/network_interface_listener_test.cc @@ -45,14 +45,6 @@ class NetworkInterfaceListenerTest : public ::testing::Test { delete interface_listener_impl_; } - // cppcheck-suppress unusedFunction - void SleepFor(long msec) const { - if (msec > 0) { - struct timespec ts = {0, msec * 1000 * 1000}; - nanosleep(&ts, NULL); - } - } - NetworkInterfaceListenerImpl* interface_listener_impl_; MockTcpClientListener mock_tcp_client_listener_; }; |