mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 14:50:07 +01:00
auth-chain: drop unused nm_auth_chain_get_data_ulong()
This commit is contained in:
parent
6f4d5b2dfb
commit
6335627e77
2 changed files with 0 additions and 33 deletions
|
|
@ -219,33 +219,6 @@ nm_auth_chain_set_data (NMAuthChain *self,
|
|||
}
|
||||
}
|
||||
|
||||
gulong
|
||||
nm_auth_chain_get_data_ulong (NMAuthChain *self, const char *tag)
|
||||
{
|
||||
gulong *data;
|
||||
|
||||
g_return_val_if_fail (self != NULL, 0);
|
||||
g_return_val_if_fail (tag != NULL, 0);
|
||||
|
||||
data = _get_data (self, tag);
|
||||
return data ? *data : 0ul;
|
||||
}
|
||||
|
||||
void
|
||||
nm_auth_chain_set_data_ulong (NMAuthChain *self,
|
||||
const char *tag,
|
||||
gulong data)
|
||||
{
|
||||
gulong *ptr;
|
||||
|
||||
g_return_if_fail (self != NULL);
|
||||
g_return_if_fail (tag != NULL);
|
||||
|
||||
ptr = g_malloc (sizeof (*ptr));
|
||||
*ptr = data;
|
||||
nm_auth_chain_set_data (self, tag, ptr, g_free);
|
||||
}
|
||||
|
||||
NMAuthSubject *
|
||||
nm_auth_chain_get_subject (NMAuthChain *self)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -55,12 +55,6 @@ void nm_auth_chain_set_data (NMAuthChain *chain,
|
|||
gpointer data,
|
||||
GDestroyNotify data_destroy);
|
||||
|
||||
void nm_auth_chain_set_data_ulong (NMAuthChain *chain,
|
||||
const char *tag,
|
||||
gulong data);
|
||||
|
||||
gulong nm_auth_chain_get_data_ulong (NMAuthChain *chain, const char *tag);
|
||||
|
||||
NMAuthCallResult nm_auth_chain_get_result (NMAuthChain *chain,
|
||||
const char *permission);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue