cpw.ljfisher.ssl_client_auth: 5ae318f7: Removed extraneous commented out code.

lucas.fisher at gmail.com lucas.fisher at gmail.com
Mon Aug 22 23:35:36 EDT 2011


----------------------------------------------------------------------
Revision: 5ae318f7129e97e6bdd31841b3a24aa6fc6d769f
Parent:   a468818f5da4a5e98fd6846a7d0f06914cacae0c
Author:   lucas.fisher at gmail.com
Date:     08/22/11 23:33:08
Branch:   im.pidgin.cpw.ljfisher.ssl_client_auth
URL: http://d.pidgin.im/viewmtn/revision/info/5ae318f7129e97e6bdd31841b3a24aa6fc6d769f

Changelog: 

Removed extraneous commented out code.
Removed unnecessary g_new0 return value checks.

Changes against parent a468818f5da4a5e98fd6846a7d0f06914cacae0c

  patched  libpurple/privatekey.c

-------------- next part --------------
============================================================
--- libpurple/privatekey.c	69f526767a11e5ecf5b35e066de74e5df07288d0
+++ libpurple/privatekey.c	036edfa2ab7aef714315d27bdbef35a019365127
@@ -138,28 +138,7 @@ purple_privatekey_pool_mkpath(PurplePriv
 	return path;
 }
 
-#if 0
 gboolean
-purple_privatekey_pool_set_password(PurplePrivateKeyPool *pool, const gchar* password)
-{
-	g_return_val_if_fail(pool, FALSE);
-	g_return_val_if_fail(password, FALSE);
-
-	(pool->set_password)(password);
-
-	return TRUE;
-}
-
-const gchar*
-purple_privatekey_pool_get_password(PurplePrivateKeyPool *pool)
-{
-	g_returen_val_if_fail(pool, FALSE);
-
-	return (pool->get_password)();
-}
-#endif
-
-gboolean
 purple_privatekey_pool_usable(PurplePrivateKeyPool *pool)
 {
 	g_return_val_if_fail(pool, FALSE);
@@ -281,8 +260,6 @@ void purple_privatekey_pool_retrieve_req
 
 void purple_privatekey_pool_retrieve_request(
 	PurplePrivateKeyPool *pool, const gchar *id,
-//	PurplePrivateKeyPoolRetrieveRequestOkCb ok_cb,
-//	PurplePrivateKeyPoolCancelCb cancel_cb,
 	GCallback ok_cb,
 	GCallback cancel_cb,
 	void* user_data)
@@ -298,7 +275,6 @@ void purple_privatekey_pool_retrieve_req
 	
 
 	data = g_new0(privatekey_pool_req_data, 1);
-	g_return_if_fail(data);
 
 	data->key = NULL;
 	data->pool = pool;
@@ -348,8 +324,6 @@ purple_privatekey_pool_store_request(
 void 
 purple_privatekey_pool_store_request(
 	PurplePrivateKeyPool *pool, const gchar *id, PurplePrivateKey *key,
-//	PurplePrivateKeyPoolStoreRequestOkCb ok_cb,
-//	PurplePrivateKeyPoolCancelCb cancel_cb,
 	GCallback ok_cb,
 	GCallback cancel_cb,
 	void* user_data)
@@ -364,7 +338,6 @@ purple_privatekey_pool_store_request(
 	
 
 	data = g_new0(privatekey_pool_req_data, 1);
-	g_return_if_fail(data);
 
 	data->key = key;
 	data->pool = pool;


More information about the Commits mailing list