mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 03:02:10 +01:00
gdataset: remove/inline internal function g_data_remove_internal()
This internal function only had one caller. Drop it.
This commit is contained in:
parent
82977db352
commit
3024d9b47e
@ -712,8 +712,24 @@ g_data_set_internal (GData **datalist,
|
||||
|
||||
}
|
||||
|
||||
static inline void
|
||||
g_data_remove_internal (GData **datalist,
|
||||
/**
|
||||
* g_datalist_id_remove_multiple:
|
||||
* @datalist: a datalist
|
||||
* @keys: (array length=n_keys): keys to remove
|
||||
* @n_keys: length of @keys.
|
||||
*
|
||||
* Removes multiple keys from a datalist.
|
||||
*
|
||||
* This is more efficient than calling g_datalist_id_remove_data()
|
||||
* multiple times in a row.
|
||||
*
|
||||
* Before 2.80, @n_keys had to be not larger than 16.
|
||||
* Since 2.84, performance is improved for larger number of keys.
|
||||
*
|
||||
* Since: 2.74
|
||||
*/
|
||||
void
|
||||
g_datalist_id_remove_multiple (GData **datalist,
|
||||
GQuark *keys,
|
||||
gsize n_keys)
|
||||
{
|
||||
@ -972,30 +988,6 @@ g_datalist_id_set_data_full (GData **datalist,
|
||||
g_data_set_internal (datalist, key_id, data, destroy_func, NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* g_datalist_id_remove_multiple:
|
||||
* @datalist: a datalist
|
||||
* @keys: (array length=n_keys): keys to remove
|
||||
* @n_keys: length of @keys.
|
||||
*
|
||||
* Removes multiple keys from a datalist.
|
||||
*
|
||||
* This is more efficient than calling g_datalist_id_remove_data()
|
||||
* multiple times in a row.
|
||||
*
|
||||
* Before 2.80, @n_keys had to be not larger than 16.
|
||||
* Since 2.84, performance is improved for larger number of keys.
|
||||
*
|
||||
* Since: 2.74
|
||||
*/
|
||||
void
|
||||
g_datalist_id_remove_multiple (GData **datalist,
|
||||
GQuark *keys,
|
||||
gsize n_keys)
|
||||
{
|
||||
g_data_remove_internal (datalist, keys, n_keys);
|
||||
}
|
||||
|
||||
/**
|
||||
* g_dataset_id_remove_no_notify: (skip)
|
||||
* @dataset_location: (not nullable): the location identifying the dataset.
|
||||
|
Loading…
x
Reference in New Issue
Block a user