mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 14:10:36 +01:00
shared: drop unnecessary NM_AUTO_DEFINE_FCN_STRUCT() macro
It serves no purpose, as it just directly calls the function. We don't need to define this intermediary.
This commit is contained in:
parent
f15d82bc91
commit
74815fd8e0
1 changed files with 1 additions and 8 deletions
|
|
@ -91,12 +91,6 @@ static inline void name (Type *v) \
|
|||
func (*v); \
|
||||
}
|
||||
|
||||
#define NM_AUTO_DEFINE_FCN_STRUCT(Type, name, func) \
|
||||
static inline void name (Type *v) \
|
||||
{ \
|
||||
func (v); \
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
/**
|
||||
|
|
@ -254,8 +248,7 @@ NM_AUTO_DEFINE_FCN (char *, _nm_auto_free_secret, nm_free_secret)
|
|||
*/
|
||||
#define nm_auto_free_secret nm_auto(_nm_auto_free_secret)
|
||||
|
||||
NM_AUTO_DEFINE_FCN_STRUCT (GValue, _nm_auto_unset_gvalue, g_value_unset)
|
||||
#define nm_auto_unset_gvalue nm_auto(_nm_auto_unset_gvalue)
|
||||
#define nm_auto_unset_gvalue nm_auto(g_value_unset)
|
||||
|
||||
NM_AUTO_DEFINE_FCN_VOID0 (void *, _nm_auto_unref_gtypeclass, g_type_class_unref)
|
||||
#define nm_auto_unref_gtypeclass nm_auto(_nm_auto_unref_gtypeclass)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue