diff options
author | Hwankyu Jhun <h.jhun@samsung.com> | 2016-08-26 08:55:17 +0900 |
---|---|---|
committer | Hwankyu Jhun <h.jhun@samsung.com> | 2016-08-26 08:55:17 +0900 |
commit | ddcb74f01c523cfcc2e71ac9ef09875abd29c965 (patch) | |
tree | 930220903b967473aab806655072b43eeadef1ea | |
parent | 656a0120102c7c54e77ef786c21a6c1271c31f36 (diff) | |
download | appcore-agent-accepted/tizen/wearable/20160830.061114.tar.gz appcore-agent-accepted/tizen/wearable/20160830.061114.tar.bz2 appcore-agent-accepted/tizen/wearable/20160830.061114.zip |
Remove unnecessary codesubmit/tizen_3.0_wearable/20161015.000000submit/tizen_3.0_tv/20161015.000000submit/tizen_3.0_mobile/20161015.000000submit/tizen_3.0_ivi/20161010.000010submit/tizen_3.0_ivi/20161010.000000submit/tizen/20160830.010724submit/tizen/20160829.010716accepted/tizen/wearable/20160830.061114accepted/tizen/tv/20160830.061020accepted/tizen/mobile/20160830.060920accepted/tizen/ivi/20160830.061159accepted/tizen/common/20160830.150112accepted/tizen/common/20160829.135822accepted/tizen/3.0/wearable/20161015.080316accepted/tizen/3.0/tv/20161016.003357accepted/tizen/3.0/mobile/20161015.032232accepted/tizen/3.0/ivi/20161011.053503
Change-Id: Ia8dc52ef3a7986fa191970cb2dd3671c75ea2017
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r-- | src/appcore-agent.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/appcore-agent.c b/src/appcore-agent.c index 012a2ea..c16f7e3 100644 --- a/src/appcore-agent.c +++ b/src/appcore-agent.c @@ -295,47 +295,6 @@ static int appcore_agent_flush_memory(void) /* LCOV_EXCL_STOP */ /* LCOV_EXCL_START */ -static int _appcore_agent_request_to_suspend(int pid) -{ -#ifdef _APPFW_FEATURE_BACKGROUND_MANAGEMENT - GError *err = NULL; - - if (bus == NULL) { - bus = g_bus_get_sync(G_BUS_TYPE_SYSTEM, NULL, &err); - if (bus == NULL) { - _ERR("g_bus_get_sync() is failed: %s", err->message); - g_error_free(err); - return -1; - } - } - - if (g_dbus_connection_emit_signal(bus, - NULL, - APPFW_SUSPEND_HINT_PATH, - APPFW_SUSPEND_HINT_INTERFACE, - APPFW_SUSPEND_HINT_SIGNAL, - g_variant_new("(i)", pid), - &err) == FALSE) { - _ERR("g_dbus_connection_emit_signal() is failed: %s", - err->message); - g_error_free(err); - return -1; - } - - if (g_dbus_connection_flush_sync(bus, NULL, &err) == FALSE) { - _ERR("g_dbus_connection_flush_sync() is failed: %s", - err->message); - g_error_free(err); - return -1; - } - - _DBG("[__SUSPEND__] Send suspend hint, pid: %d", pid); -#endif - return 0; -} -/* LCOV_EXCL_STOP */ - -/* LCOV_EXCL_START */ static void __prepare_to_suspend(void *data) { #ifdef _APPFW_FEATURE_BACKGROUND_MANAGEMENT @@ -345,7 +304,6 @@ static void __prepare_to_suspend(void *data) if (ac && !ac->allowed_bg && !ac->suspended_state) { _DBG("[__SUSPEND__]"); __sys_do(ac, &suspend, SE_SUSPENDED_STATE); - _appcore_agent_request_to_suspend(getpid()); /* send dbus signal to resourced */ ac->suspended_state = true; } #endif |