Remove unused codes 03/201203/1
authorhyunho <hhstark.kang@samsung.com>
Mon, 11 Mar 2019 08:57:27 +0000 (17:57 +0900)
committerhyunho <hhstark.kang@samsung.com>
Mon, 11 Mar 2019 08:59:08 +0000 (17:59 +0900)
Change-Id: I340a1292f7f2a208bc666c7786df27a2a0bed856
Signed-off-by: hyunho <hhstark.kang@samsung.com>
CMakeLists.txt
packaging/appcore-widget.spec
src/base/widget_base.c

index 369fd82..c3ac5b6 100644 (file)
@@ -28,8 +28,6 @@ pkg_check_modules(pkg_widget_base REQUIRED
        dlog
        appcore-common
        capi-appfw-app-common
-       vconf
-       vconf-internal-keys
        widget_service
        capi-system-info
        ecore-wl2
index acbad7e..794970b 100644 (file)
@@ -8,8 +8,6 @@ Source0:    appcore-widget-%{version}.tar.gz
 BuildRequires:  pkgconfig(aul)
 BuildRequires:  pkgconfig(dlog)
 BuildRequires:  pkgconfig(elementary)
-BuildRequires:  pkgconfig(vconf)
-BuildRequires:  pkgconfig(vconf-internal-keys)
 BuildRequires:  pkgconfig(appcore-common)
 BuildRequires:  pkgconfig(capi-appfw-app-common)
 BuildRequires:  pkgconfig(widget_service)
index efa1394..c443d00 100644 (file)
@@ -31,8 +31,6 @@
 #include <aul_app_com.h>
 #include <Ecore_Wl2.h>
 #include <system_info.h>
-#include <vconf.h>
-#include <vconf-internal-keys.h>
 #include <screen_connector_provider.h>
 #include <appcore_multiwindow_base.h>
 
@@ -154,27 +152,6 @@ static bool __is_widget_feature_enabled(void)
        return feature;
 }
 
-/* LCOV_EXCL_START */
-static void __on_poweroff(keynode_t *key, void *data)
-{
-       int val;
-
-       val = vconf_keynode_get_int(key);
-       switch (val) {
-       case VCONFKEY_SYSMAN_POWER_OFF_DIRECT:
-       case VCONFKEY_SYSMAN_POWER_OFF_RESTART:
-               LOGI("power off changed: %d", val);
-               widget_base_exit();
-               break;
-       case VCONFKEY_SYSMAN_POWER_OFF_NONE:
-       case VCONFKEY_SYSMAN_POWER_OFF_POPUP:
-       default:
-               /* DO NOTHING */
-               break;
-       }
-}
-/* LCOV_EXCL_STOP */
-
 static void __check_empty_instance(void)
 {
        int cnt = appcore_multiwindow_base_instance_get_cnt();
@@ -607,10 +584,6 @@ static int __multiwindow_create(void *data)
        }
 
        screen_connector_provider_init();
-       vconf_notify_key_changed(VCONFKEY_SYSMAN_POWER_OFF_STATUS,
-                       __on_poweroff, NULL);
-
-
        if (__context.ops.create)
                ret = __context.ops.create(data);
 
@@ -622,9 +595,6 @@ static int __multiwindow_terminate(void *data)
 {
        if (__context.ops.terminate)
                __context.ops.terminate(data);
-
-       vconf_ignore_key_changed(VCONFKEY_SYSMAN_POWER_OFF_STATUS,
-                       __on_poweroff);
        screen_connector_provider_fini();
 
        if (__viewer_endpoint) {