Remove the unnecessary code. 25/129125/1
authorSegwon <segwon.han@samsung.com>
Mon, 15 May 2017 06:10:48 +0000 (15:10 +0900)
committerSegwon <segwon.han@samsung.com>
Mon, 15 May 2017 06:11:31 +0000 (15:11 +0900)
Signed-off-by: Segwon <segwon.han@samsung.com>
Change-Id: I55c2d0020c502a1dc9551a48aee928004a9654e7

daemon/service_provider/AppCommServiceProvider.cpp
daemon/service_provider/RemoteAppControlServiceProvider.cpp

index d2ca7cee004bb4aba6314489f8b11e388a717f58..6bf2b85c282163696a40f6f19b43e03a6576327b 100755 (executable)
@@ -185,8 +185,7 @@ static void _dbusDisconnectListener(GDBusConnection* conn, const gchar* sender,
                        dbus_listener_info_map.erase(iter);
 
                        if (_requestObj->getInvocation() != NULL) {
-                               GDBusConnection *_conn = g_dbus_method_invocation_get_connection(_requestObj->getInvocation());
-                               g_dbus_connection_signal_unsubscribe(_conn, listener_id);
+                               g_dbus_connection_signal_unsubscribe(conn, listener_id);
                                _D("Unsubscribe the dbus signal. id = %d", listener_id);
                        } else {
                                _E("requestObj invocation is NULL");
index ff12962cb3c505c0906ea3b42b3f5464cff0cd29..906636e8b484b70b57ae7eaf2f4e37a7c7185823 100755 (executable)
@@ -858,8 +858,7 @@ static void _dbusDisconnectListener(GDBusConnection* conn, const gchar* sender,
                        dbus_listener_info_map.erase(iter);
 
                        if (_requestObj->getInvocation() != NULL) {
-                               GDBusConnection *_conn = g_dbus_method_invocation_get_connection(_requestObj->getInvocation());
-                               g_dbus_connection_signal_unsubscribe(_conn, listener_id);
+                               g_dbus_connection_signal_unsubscribe(conn, listener_id);
                                _D("Delete dbus disconnect listener.");
                        } else {
                                _E("requestObj invocation is NULL");