Remove unused codes
[platform/core/appfw/appcore-widget.git] / src / base / widget_base.c
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) {