[gnome-bluetooth/wip/hadess/lib-changes: 18/19] lib: Remove unused bluetooth_settings_row_new()




commit a04efe6fac6bf6ce1c557e913b4f7fb27de7c0a8
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Nov 29 13:04:09 2021 +0100

    lib: Remove unused bluetooth_settings_row_new()
    
    The only caller uses g_object_new() directly.

 lib/bluetooth-settings-row.c | 13 -------------
 lib/bluetooth-settings-row.h |  1 -
 2 files changed, 14 deletions(-)
---
diff --git a/lib/bluetooth-settings-row.c b/lib/bluetooth-settings-row.c
index 082e5587..b07f0a74 100644
--- a/lib/bluetooth-settings-row.c
+++ b/lib/bluetooth-settings-row.c
@@ -307,19 +307,6 @@ bluetooth_settings_row_class_init (BluetoothSettingsRowClass *klass)
        gtk_widget_class_bind_template_child (widget_class, BluetoothSettingsRow, status);
 }
 
-/**
- * bluetooth_settings_row_new:
- *
- * Returns a new #BluetoothSettingsRow widget.
- *
- * Return value: A #BluetoothSettingsRow widget
- **/
-GtkWidget *
-bluetooth_settings_row_new (void)
-{
-       return g_object_new (BLUETOOTH_TYPE_SETTINGS_ROW, NULL);
-}
-
 static gboolean
 name_to_visible (GBinding     *binding,
                 const GValue *from_value,
diff --git a/lib/bluetooth-settings-row.h b/lib/bluetooth-settings-row.h
index 96304704..c5e0479c 100644
--- a/lib/bluetooth-settings-row.h
+++ b/lib/bluetooth-settings-row.h
@@ -26,5 +26,4 @@
 #define BLUETOOTH_TYPE_SETTINGS_ROW (bluetooth_settings_row_get_type())
 G_DECLARE_FINAL_TYPE (BluetoothSettingsRow, bluetooth_settings_row, BLUETOOTH, SETTINGS_ROW, GtkListBoxRow)
 
-GtkWidget *bluetooth_settings_row_new (void);
 GtkWidget *bluetooth_settings_row_new_from_device (BluetoothDevice *device);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]