diff options
author | hyunho <hhstark.kang@samsung.com> | 2019-03-11 17:57:27 +0900 |
---|---|---|
committer | hyunho <hhstark.kang@samsung.com> | 2019-03-11 17:59:08 +0900 |
commit | eaf6c143ac7eae93e312d9bb96ad01ccd91cb08c (patch) | |
tree | 144dd8898f86f2a762c18bd9a485da6b26cb4b26 | |
parent | f89e0908ada716a1d3755f8f21968949cbc34af8 (diff) | |
download | appcore-widget-eaf6c143ac7eae93e312d9bb96ad01ccd91cb08c.tar.gz appcore-widget-eaf6c143ac7eae93e312d9bb96ad01ccd91cb08c.tar.bz2 appcore-widget-eaf6c143ac7eae93e312d9bb96ad01ccd91cb08c.zip |
Remove unused codes
Change-Id: I340a1292f7f2a208bc666c7786df27a2a0bed856
Signed-off-by: hyunho <hhstark.kang@samsung.com>
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | packaging/appcore-widget.spec | 2 | ||||
-rw-r--r-- | src/base/widget_base.c | 30 |
3 files changed, 0 insertions, 34 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 369fd82..c3ac5b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/packaging/appcore-widget.spec b/packaging/appcore-widget.spec index acbad7e..794970b 100644 --- a/packaging/appcore-widget.spec +++ b/packaging/appcore-widget.spec @@ -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) diff --git a/src/base/widget_base.c b/src/base/widget_base.c index efa1394..c443d00 100644 --- a/src/base/widget_base.c +++ b/src/base/widget_base.c @@ -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) { |