summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-11-25 15:51:44 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-11-25 15:51:44 +0100
commit4ca114eed5a1b092fb0e585de877a9db6281bb62 (patch)
tree7e2068b46b9ad76760165902938ab381dbba913d
parenta2960d4e6fdc6b8d6dddeab7af6bb79e0fb85064 (diff)
downloadconnman-4ca114eed5a1b092fb0e585de877a9db6281bb62.tar.gz
connman-4ca114eed5a1b092fb0e585de877a9db6281bb62.tar.bz2
connman-4ca114eed5a1b092fb0e585de877a9db6281bb62.zip
Remove element signal emission
-rw-r--r--src/element.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/element.c b/src/element.c
index 1a147f77..ffa43044 100644
--- a/src/element.c
+++ b/src/element.c
@@ -77,27 +77,6 @@ static const char *type2string(enum connman_element_type type)
return NULL;
}
-static void emit_element_signal(DBusConnection *conn, const char *member,
- struct connman_element *element)
-{
- DBusMessage *signal;
-
- if (__connman_debug_enabled() == FALSE)
- return;
-
- DBG("conn %p member %s", conn, member);
-
- if (element == NULL)
- return;
-
- signal = dbus_message_new_signal(element->path,
- CONNMAN_DEBUG_INTERFACE, member);
- if (signal == NULL)
- return;
-
- g_dbus_send_message(conn, signal);
-}
-
struct foreach_data {
enum connman_element_type type;
element_cb_t callback;
@@ -1365,8 +1344,6 @@ static void register_element(gpointer data, gpointer user_data)
emit_state_change(connection, "online");
}
- emit_element_signal(connection, "ElementAdded", element);
-
if (started == FALSE)
return;
@@ -1476,8 +1453,6 @@ static gboolean remove_element(GNode *node, gpointer user_data)
emit_state_change(connection, "offline");
}
- emit_element_signal(connection, "ElementRemoved", element);
-
connman_element_unref(element);
return FALSE;
@@ -1518,8 +1493,6 @@ static gboolean update_element(GNode *node, gpointer user_data)
if (element->driver && element->driver->update)
element->driver->update(element);
- emit_element_signal(connection, "ElementUpdated", element);
-
return FALSE;
}