summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2018-07-27 14:19:30 +0200
committerBastien Nocera <hadess@hadess.net>2018-07-27 16:10:45 +0200
commitcf9ef6a4d36d3d269cbf85e90907ca5d7775bd3b (patch)
tree4e503731fb0e91146993dbe95547bae44e8dd286 /lib
parenta4b2b05e8ac302850e9ab5a293654f3f02b44588 (diff)
downloadgnome-bluetooth-cf9ef6a4d36d3d269cbf85e90907ca5d7775bd3b.tar.gz
client: Remove unused _bluetooth_client_get_discoverable()
We stopped using it in the previous commit.
Diffstat (limited to 'lib')
-rw-r--r--lib/bluetooth-client.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index 1129e373..0be50890 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -945,36 +945,6 @@ _bluetooth_client_get_default_adapter_name (BluetoothClient *self)
}
/**
- * _bluetooth_client_get_discoverable:
- * @client: a #BluetoothClient
- *
- * Gets the default adapter's discoverable status, cached in the adapter model.
- *
- * Returns: the discoverable status, or FALSE if no default adapter exists
- */
-static gboolean
-_bluetooth_client_get_discoverable (BluetoothClient *client)
-{
- BluetoothClientPrivate *priv;
- GtkTreePath *path;
- GtkTreeIter iter;
- gboolean ret;
-
- g_return_val_if_fail (BLUETOOTH_IS_CLIENT (client), FALSE);
-
- priv = BLUETOOTH_CLIENT_GET_PRIVATE (client);
- if (priv->default_adapter == NULL)
- return FALSE;
-
- path = gtk_tree_row_reference_get_path (priv->default_adapter);
- gtk_tree_model_get_iter (GTK_TREE_MODEL (priv->store), &iter, path);
- gtk_tree_model_get (GTK_TREE_MODEL (priv->store), &iter,
- BLUETOOTH_COLUMN_DISCOVERABLE, &ret, -1);
-
- return ret;
-}
-
-/**
* _bluetooth_client_set_discoverable:
* @client: a #BluetoothClient object
* @discoverable: whether the device should be discoverable