Removed dump log
[platform/core/connectivity/net-config.git] / src / signal-handler.c
index 34cb6f4..304234d 100755 (executable)
 #include "wifi-background-scan.h"
 #include "wifi-tdls.h"
 
-#if defined TIZEN_DEBUG_DISABLE
-#include "wifi-dump.h"
-#endif
-
 #define DBUS_SERVICE_DBUS                      "org.freedesktop.DBus"
 #define DBUS_INTERFACE_DBUS                    "org.freedesktop.DBus"
 #define SIGNAL_INTERFACE_REMOVED               "InterfaceRemoved"
@@ -87,7 +83,6 @@ static const char supplicant_signals[SIG_MAX][MAX_SIG_LEN] = {
 };
 
 static int supp_subscription_ids[SIG_MAX] = {0};
-static int dumpservice_subscription_id = 0;
 
 typedef void (*supplicant_signal_cb)(GDBusConnection *conn,
                const gchar *name, const gchar *path, const gchar *interface,
@@ -577,27 +572,6 @@ static supplicant_signal_cb supplicant_cbs[SIG_MAX] = {
                _supplicant_tdls_peer_found
 };
 
-#if defined TIZEN_DEBUG_DISABLE
-static void __netconfig_dumpservice_handler(GDBusConnection *conn,
-               const gchar *name, const gchar *path, const gchar *interface,
-               const gchar *sig, GVariant *param, gpointer user_data)
-{
-       int mode;
-       gchar *signal_path = NULL;
-
-       if (param == NULL)
-               return;
-
-       g_variant_get(param, "(io)", &mode, &signal_path);
-       DBG("Path: %s and mode: %d", signal_path, mode);
-       netconfig_dump_log(path);
-       if (signal_path)
-               g_free(signal_path);
-
-       return;
-}
-#endif
-
 void register_gdbus_signal(void)
 {
        GDBusConnection *connection = NULL;
@@ -684,25 +658,6 @@ void register_gdbus_signal(void)
 
        INFO("Successfully register Supplicant DBus signal filters");
 
-#if defined TIZEN_DEBUG_DISABLE
-       dumpservice_subscription_id = g_dbus_connection_signal_subscribe(
-                       connection,
-                       /*
-                        * Sender => For testing purpose made NULL
-                        *WPA_SUPPLICANT,
-                        */
-                       NULL,
-                       DUMP_SERVICE_INTERFACE,
-                       DUMP_SIGNAL,
-                       NULL,
-                       NULL,
-                       G_DBUS_SIGNAL_FLAGS_NONE,
-                       __netconfig_dumpservice_handler,
-                       NULL,
-                       NULL);
-
-       INFO("Successfully register Dumpservice DBus signal filter");
-#endif
        /* In case ConnMan precedes this signal register,
         * net-config should update the default connected profile.
         */
@@ -734,6 +689,4 @@ void deregister_gdbus_signal(void)
                }
        }
 
-       g_dbus_connection_signal_unsubscribe(connection,
-                       dumpservice_subscription_id);
 }