soc.2008.masterpassword: 53a2e3f2: Remove unnecessary variable.
qulogic at pidgin.im
qulogic at pidgin.im
Mon Nov 7 02:37:35 EST 2011
----------------------------------------------------------------------
Revision: 53a2e3f2b5a45591b498230cc8331d34a90f19a6
Parent: 0ae2a72f44dab889ee4a2c5664f0ca15fe484ae8
Author: qulogic at pidgin.im
Date: 11/06/11 01:09:17
Branch: im.pidgin.soc.2008.masterpassword
URL: http://d.pidgin.im/viewmtn/revision/info/53a2e3f2b5a45591b498230cc8331d34a90f19a6
Changelog:
Remove unnecessary variable.
Changes against parent 0ae2a72f44dab889ee4a2c5664f0ca15fe484ae8
patched libpurple/plugins/keyrings/internalkeyring.c
-------------- next part --------------
============================================================
--- libpurple/plugins/keyrings/internalkeyring.c a0b1029bfac9042dbbaa68298106961e479f48d9
+++ libpurple/plugins/keyrings/internalkeyring.c 5cf11c11ef38d59cdb61aca2479702febc9c0162
@@ -50,13 +50,12 @@
#define INTERNALKEYRING_AUTHOR "Scrouaf (scrouaf[at]soc.pidgin.im)"
#define INTERNALKEYRING_ID PURPLE_DEFAULT_KEYRING
-#define ACTIVATE()\
- if (internal_keyring_is_active == FALSE)\
+#define ACTIVATE() \
+ if (internal_keyring_passwords == NULL) \
internal_keyring_open();
static GHashTable *internal_keyring_passwords = NULL;
static PurpleKeyring *keyring_handler = NULL;
-static gboolean internal_keyring_is_active = FALSE;
/***********************************************/
/* Keyring interface */
@@ -66,7 +65,6 @@ internal_keyring_open(void)
{
internal_keyring_passwords = g_hash_table_new_full(g_direct_hash,
g_direct_equal, NULL, g_free);
- internal_keyring_is_active = TRUE;
}
static void
@@ -129,8 +127,6 @@ internal_keyring_close(GError **error)
static void
internal_keyring_close(GError **error)
{
- internal_keyring_is_active = FALSE;
-
g_hash_table_destroy(internal_keyring_passwords);
internal_keyring_passwords = NULL;
}
More information about the Commits
mailing list