Remove the unnecessary code. 24/129124/1
authorSegwon <segwon.han@samsung.com>
Mon, 15 May 2017 06:05:28 +0000 (15:05 +0900)
committerSegwon <segwon.han@samsung.com>
Mon, 15 May 2017 06:07:09 +0000 (15:07 +0900)
Signed-off-by: Segwon <segwon.han@samsung.com>
Change-Id: I20191cf0701758f30e8959774dc8d25717387c24

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

index 4de796d8271279adfd56388103f9ab57d5e62eb9..1e7275f989b47c035b21c7b6a2824eece323889c 100755 (executable)
@@ -185,7 +185,6 @@ 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);
                                _D("Unsubscribe the dbus signal. id = %d", listener_id);
                        } else {
index 131ea30398bedf4d9768896f5bb5e758284eb648..ce557c99b3455e9820f10540a610c319fc8b2d06 100755 (executable)
@@ -858,7 +858,6 @@ 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);
                                _D("Delete dbus disconnect listener.");
                        } else {