[gnome-bluetooth/wip/hadess/function-removal: 1/9] lib: Make bluetooth_client_get_filter_model() private
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/wip/hadess/function-removal: 1/9] lib: Make bluetooth_client_get_filter_model() private
- Date: Thu, 18 Nov 2021 17:01:40 +0000 (UTC)
commit cf8da110a9c26ba35bd6e912df0a1380b3d0a037
Author: Bastien Nocera <hadess hadess net>
Date: Thu Nov 18 15:02:47 2021 +0100
lib: Make bluetooth_client_get_filter_model() private
It's now unused anywhere else.
docs/reference/libgnome-bluetooth/gnome-bluetooth-sections.txt | 1 -
lib/bluetooth-client.c | 8 +++++---
lib/bluetooth-client.h | 3 ---
lib/gnome-bluetooth.map | 1 -
4 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/docs/reference/libgnome-bluetooth/gnome-bluetooth-sections.txt
b/docs/reference/libgnome-bluetooth/gnome-bluetooth-sections.txt
index 9fd31bd3..ef59c2a6 100644
--- a/docs/reference/libgnome-bluetooth/gnome-bluetooth-sections.txt
+++ b/docs/reference/libgnome-bluetooth/gnome-bluetooth-sections.txt
@@ -6,7 +6,6 @@ bluetooth_client_connect_service
bluetooth_client_connect_service_finish
bluetooth_client_get_adapter_model
bluetooth_client_get_device_model
-bluetooth_client_get_filter_model
bluetooth_client_get_model
bluetooth_client_new
<SUBSECTION Standard>
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index 367bdc13..7c24a55d 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -1215,9 +1215,11 @@ GtkTreeModel *bluetooth_client_get_model (BluetoothClient *client)
*
* Return value: (transfer full): a #GtkTreeModel object.
**/
-GtkTreeModel *bluetooth_client_get_filter_model (BluetoothClient *client,
- GtkTreeModelFilterVisibleFunc func,
- gpointer data, GDestroyNotify destroy)
+static GtkTreeModel *
+bluetooth_client_get_filter_model (BluetoothClient *client,
+ GtkTreeModelFilterVisibleFunc func,
+ gpointer data,
+ GDestroyNotify destroy)
{
BluetoothClientPrivate *priv;
GtkTreeModel *model;
diff --git a/lib/bluetooth-client.h b/lib/bluetooth-client.h
index 571b31d1..dcd72c01 100644
--- a/lib/bluetooth-client.h
+++ b/lib/bluetooth-client.h
@@ -62,9 +62,6 @@ BluetoothClient *bluetooth_client_new(void);
GtkTreeModel *bluetooth_client_get_model(BluetoothClient *client);
-GtkTreeModel *bluetooth_client_get_filter_model(BluetoothClient *client,
- GtkTreeModelFilterVisibleFunc func,
- gpointer data, GDestroyNotify destroy);
GtkTreeModel *bluetooth_client_get_adapter_model(BluetoothClient *client);
GtkTreeModel *bluetooth_client_get_device_model(BluetoothClient *client);
diff --git a/lib/gnome-bluetooth.map b/lib/gnome-bluetooth.map
index b7f6c183..7ec1912e 100644
--- a/lib/gnome-bluetooth.map
+++ b/lib/gnome-bluetooth.map
@@ -8,7 +8,6 @@ global:
bluetooth_client_get_type;
bluetooth_client_new;
bluetooth_client_get_model;
- bluetooth_client_get_filter_model;
bluetooth_client_get_adapter_model;
bluetooth_client_get_device_model;
bluetooth_client_connect_service;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]