Removing switches registration on app initialization 81/148081/2
authorPawel Kurowski <p.kurowski2@samsung.com>
Wed, 6 Sep 2017 14:06:12 +0000 (16:06 +0200)
committerPawel Kurowski <p.kurowski2@samsung.com>
Fri, 8 Sep 2017 15:22:12 +0000 (15:22 +0000)
Change-Id: I3c419e548ad0ab656b98f1bb677b3919a85d9b50

src/UniversalSwitch.cpp

index b3e42d6..8f92c0d 100644 (file)
@@ -25,25 +25,6 @@ void UniversalSwitch::initialize()
        //TODO: temporarily memory database is used (change to file database)
        auto configuration = std::make_shared<SQLiteConfiguration>(true);
 
-       {
-               //TODO: remove after integration with settings app
-               std::string switchId = "AccessoriesSwitchProvider_x";
-               auto switch_ = compositeSwitchProvider->findSwitchById(switchId);
-               std::string activityType = "SELECT";
-               auto item = std::make_shared<SwitchConfigurationItem>(switch_->getId()->getGlobalId(), activityType);
-               DEBUG("getGlobalId %s", switch_->getId()->getGlobalId().c_str());
-               configuration->add(item);
-       }
-       {
-               //TODO: remove after integration with settings app
-               std::string switchId = "ScreenSwitchProvider_touch";
-               auto switch_ = compositeSwitchProvider->findSwitchById(switchId);
-               std::string activityType = "SELECT";
-               auto item = std::make_shared<SwitchConfigurationItem>(switch_->getId()->getGlobalId(), activityType);
-               DEBUG("getGlobalId %s", switch_->getId()->getGlobalId().c_str());
-               configuration->add(item);
-       }
-
        setCompositeSwitchProvider(compositeSwitchProvider);
        setConfiguration(configuration);
        setDBusInterface(DBusInterface::create());