diff options
author | Andrey Oleynik <aoleynik@luxoft.com> | 2017-08-21 11:42:16 +0300 |
---|---|---|
committer | Andrey Oleynik <aoleynik@luxoft.com> | 2017-08-21 16:02:16 +0300 |
commit | 838822011847919b673a88ced85104ccd824b3ed (patch) | |
tree | b0f902bcf8a679f3ac624fcad47472d54b762ab2 /src/components | |
parent | b09c800caaf92bbecd66b40b2fc2d2fa15cb413d (diff) | |
download | sdl_core-838822011847919b673a88ced85104ccd824b3ed.tar.gz |
Removes unused intefaces from RCAppExtention class
Diffstat (limited to 'src/components')
3 files changed, 1 insertions, 33 deletions
diff --git a/src/components/remote_control/include/remote_control/rc_app_extension.h b/src/components/remote_control/include/remote_control/rc_app_extension.h index f9d0cfa84d..aa47624713 100644 --- a/src/components/remote_control/include/remote_control/rc_app_extension.h +++ b/src/components/remote_control/include/remote_control/rc_app_extension.h @@ -48,18 +48,6 @@ class RCAppExtension : public application_manager::AppExtension { ~RCAppExtension(); /** - * @brief Checks is application has access to a radio tune control - * @return true if control given - */ - bool IsControlGiven() const; - - /** - * @brief Give radio tune control to application - * @param is_control_given true - give control, false - cancel control - */ - void GiveControl(bool is_control_given); - - /** * @brief Subscribe to OnInteriorVehicleDataNotification * @param module interior data specification(zone, data type) */ @@ -78,8 +66,6 @@ class RCAppExtension : public application_manager::AppExtension { bool IsSubscibedToInteriorVehicleData(const Json::Value& module_type); private: - bool is_control_given_; - bool is_on_driver_device_; std::set<Json::Value> subscribed_interior_vehicle_data_; }; diff --git a/src/components/remote_control/src/rc_app_extension.cc b/src/components/remote_control/src/rc_app_extension.cc index ded3a15775..c5b0584dcd 100644 --- a/src/components/remote_control/src/rc_app_extension.cc +++ b/src/components/remote_control/src/rc_app_extension.cc @@ -34,17 +34,7 @@ namespace remote_control { RCAppExtension::RCAppExtension(application_manager::AppExtensionUID uid) - : AppExtension(uid) - , is_control_given_(false) - , is_on_driver_device_(false) {} - -bool RCAppExtension::IsControlGiven() const { - return is_control_given_; -} - -void RCAppExtension::GiveControl(bool is_control_given) { - is_control_given_ = is_control_given; -} + : AppExtension(uid) {} void RCAppExtension::SubscribeToInteriorVehicleData( const Json::Value& module_type) { diff --git a/src/components/remote_control/test/src/rc_app_extension_test.cc b/src/components/remote_control/test/src/rc_app_extension_test.cc index 163d09b9d0..78388ccbf1 100644 --- a/src/components/remote_control/test/src/rc_app_extension_test.cc +++ b/src/components/remote_control/test/src/rc_app_extension_test.cc @@ -40,12 +40,4 @@ TEST(CanAppExtensionTest, Create) { ASSERT_TRUE(extension.uid() == 7); } -TEST(CanAppExtensionTest, Control) { - RCAppExtension extension(3); - ASSERT_EQ(3, extension.uid()); - ASSERT_FALSE(extension.IsControlGiven()); - extension.GiveControl(true); - ASSERT_TRUE(extension.IsControlGiven()); -} - } // namespace remote_control |