From: Oskar Chodowicz Date: Mon, 1 Jul 2019 15:00:33 +0000 (+0200) Subject: Remove unnecessary code X-Git-Tag: accepted/tizen/unified/20190705.110821~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a9a2d537a6278af6dafb4822cf2a102ca37698e8;p=profile%2Fmobile%2Fapps%2Fnative%2Faccessibility-setting.git Remove unnecessary code Change-Id: I1f8b447eb7b074de052dbd06f0c59afd5c1b9045 --- diff --git a/src/AccessoriesSwitchesPage.cpp b/src/AccessoriesSwitchesPage.cpp deleted file mode 100644 index 7239325..0000000 --- a/src/AccessoriesSwitchesPage.cpp +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Copyright 2018 Samsung Electronics Co., Ltd - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "AccessoriesSwitchesPage.hpp" - -#include "AccessibilitySettingLog.hpp" -#include "Button.hpp" -#include "Entry.hpp" -#include "Layout.hpp" -#include "NavigationContext.hpp" -#include "Popup.hpp" -#include "Singleton.hpp" - -AccessoriesSwitchesPage::AccessoriesSwitchesPage(NaviframeItem targetItem) - : context_(Singleton::instance()), targetItem_(targetItem) -{ - auto naviframe = Singleton::instance().getNaviframe(); - auto layout = Widget::make(naviframe, EDJ_ACCESSORY, GRP_ACCESSORY); - layout->setText(PRT_ACCESSORY_LABEL, "IDS_ACCS_UNIVERSAL_SWITCH_ADD_SWITCH_ACCESSORIES_DESC"); - - naviframe->pushBack("IDS_ACCS_UNIVERSAL_SWITCH_ADD_SWITCH_ACCESSORIES_TITLE", layout, [this]() { - setting_accessibility_universal_switch_dbus_config_cancelCaptureSwitch(&context_.config); - switchId = {}; - }); - - auto prevBtn = Widget::make