From a45d0f5fa6a21510ac672009132e5a280127f4d5 Mon Sep 17 00:00:00 2001 From: Alberto Mardegan Date: Wed, 30 Nov 2011 11:49:19 +0200 Subject: [PATCH] Remove signon_identity_info_{get,set}_identity_ref_count Clients should use signon_identity_{add,remove}_reference instead. --- libsignon-glib/signon-identity-info.c | 22 +--------------------- libsignon-glib/signon-identity-info.h | 4 ---- libsignon-glib/signon-internals.h | 1 - 3 files changed, 1 insertion(+), 26 deletions(-) diff --git a/libsignon-glib/signon-identity-info.c b/libsignon-glib/signon-identity-info.c index 2395e85..1ea39b4 100644 --- a/libsignon-glib/signon-identity-info.c +++ b/libsignon-glib/signon-identity-info.c @@ -157,11 +157,7 @@ identity_ptrarray_to_identity_info (const GPtrArray *identity_array) signon_identity_info_set_identity_type (info, g_value_get_int (value)); g_value_unset (value); - /* get the ref_count (gint) */ - value = g_ptr_array_index (identity_array, 8); - g_assert (G_VALUE_HOLDS_INT(value)); - signon_identity_info_set_identity_ref_count (info, g_value_get_int (value)); - g_value_unset (value); + /* ignore the ref_count (8th field) */ return info; } @@ -239,9 +235,6 @@ SignonIdentityInfo *signon_identity_info_copy (const SignonIdentityInfo *other) signon_identity_info_set_identity_type (info, signon_identity_info_get_identity_type (other)); - signon_identity_info_set_identity_ref_count (info, - signon_identity_info_get_identity_ref_count (other)); - return info; } @@ -342,12 +335,6 @@ SignonIdentityType signon_identity_info_get_identity_type (const SignonIdentityI return (SignonIdentityType)info->type; } -gint signon_identity_info_get_identity_ref_count (const SignonIdentityInfo *info) -{ - g_return_val_if_fail (info != NULL, -1); - return (SignonIdentityType)info->ref_count; -} - /** * signon_identity_info_set_username: * @info: the #SignonIdentityInfo. @@ -487,10 +474,3 @@ void signon_identity_info_set_identity_type (SignonIdentityInfo *info, g_return_if_fail (info != NULL); info->type = (gint)type; } - -void signon_identity_info_set_identity_ref_count (SignonIdentityInfo *info, - gint ref_count) -{ - g_return_if_fail (info != NULL); - info->ref_count = ref_count; -} diff --git a/libsignon-glib/signon-identity-info.h b/libsignon-glib/signon-identity-info.h index afd716a..83e8b3b 100644 --- a/libsignon-glib/signon-identity-info.h +++ b/libsignon-glib/signon-identity-info.h @@ -59,7 +59,6 @@ const GHashTable *signon_identity_info_get_methods (const SignonIdentityInfo *in const gchar* const *signon_identity_info_get_realms (const SignonIdentityInfo *info); const gchar* const *signon_identity_info_get_access_control_list (const SignonIdentityInfo *info); SignonIdentityType signon_identity_info_get_identity_type (const SignonIdentityInfo *info); -gint signon_identity_info_get_identity_ref_count (const SignonIdentityInfo *info); void signon_identity_info_set_username (SignonIdentityInfo *info, const gchar *username); void signon_identity_info_set_secret (SignonIdentityInfo *info, @@ -76,9 +75,6 @@ void signon_identity_info_set_access_control_list (SignonIdentityInfo *info, void signon_identity_info_set_identity_type (SignonIdentityInfo *info, SignonIdentityType type); -void signon_identity_info_set_identity_ref_count (SignonIdentityInfo *info, - gint ref_count); - G_END_DECLS #endif /* _SIGNON_IDENTITY_INFO_H_ */ diff --git a/libsignon-glib/signon-internals.h b/libsignon-glib/signon-internals.h index 3fee986..9b5232a 100644 --- a/libsignon-glib/signon-internals.h +++ b/libsignon-glib/signon-internals.h @@ -53,7 +53,6 @@ struct _SignonIdentityInfo gchar **realms; gchar **access_control_list; gint type; - gint ref_count; }; G_GNUC_INTERNAL -- 2.7.4