summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2013-11-21 01:28:36 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2013-11-21 01:30:48 +0100
commit7b10af8a9fa45421f61f45d4ecafadc14c63f3f3 (patch)
tree6b35064c44904fb0c29a3a7823d046ab7dc9835e
parentfb19f64d6188e9baeba938d7c64ec99cc06f1162 (diff)
downloadneard-7b10af8a9fa45421f61f45d4ecafadc14c63f3f3.tar.gz
neard-7b10af8a9fa45421f61f45d4ecafadc14c63f3f3.tar.bz2
neard-7b10af8a9fa45421f61f45d4ecafadc14c63f3f3.zip
adapter: Remove near_adapter_list
This routine is no longer called.
-rw-r--r--src/adapter.c19
-rw-r--r--src/near.h1
2 files changed, 0 insertions, 20 deletions
diff --git a/src/adapter.c b/src/adapter.c
index 0f821ee..c77dc94 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -190,25 +190,6 @@ static int adapter_start_poll(struct near_adapter *adapter)
return 0;
}
-static void append_path(gpointer key, gpointer value, gpointer user_data)
-{
- struct near_adapter *adapter = value;
- DBusMessageIter *iter = user_data;
-
- DBG("%s", adapter->path);
-
- if (!adapter->path)
- return;
-
- dbus_message_iter_append_basic(iter, DBUS_TYPE_OBJECT_PATH,
- &adapter->path);
-}
-
-void __near_adapter_list(DBusMessageIter *iter, void *user_data)
-{
- g_hash_table_foreach(adapter_hash, append_path, iter);
-}
-
static gboolean property_get_mode(const GDBusPropertyTable *property,
DBusMessageIter *iter, void *user_data)
{
diff --git a/src/near.h b/src/near.h
index c75aefe..1d00dc7 100644
--- a/src/near.h
+++ b/src/near.h
@@ -92,7 +92,6 @@ int __near_adapter_remove_device(uint32_t idx);
int __near_adapter_set_dep_state(uint32_t idx, bool dep);
bool __near_adapter_get_dep_state(uint32_t idx);
void __near_adapter_listen(struct near_device_driver *driver);
-void __near_adapter_list(DBusMessageIter *iter, void *user_data);
void __near_adapter_start_check_presence(uint32_t adapter_idx, uint32_t target_idx);
void __near_adapter_stop_check_presence(uint32_t adapter_idx, uint32_t target_idx);
int __near_adapter_init(void);